Bug 178661 - Invalid templates for file names with dashes
Summary: Invalid templates for file names with dashes
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (old) (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-24 12:38 UTC by Rafał Malinowski
Modified: 2009-07-25 14:21 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rafał Malinowski 2008-12-24 12:38:03 UTC
Version:           3.9.84 (using Devel)
OS:                Linux
Installed from:    Compiled sources

New class wizard: when creating a class in file with dashes in its name, the generated template will be invalid.

1. open a project
2. invoke "New class"
3. give class any name
4. give file names: invalid-template.h / invalid-template.cpp
5. generated file will contain following lines:

#ifndef INVALID-TEMPLATE_H
#define INVALID-TEMPLATE_H

Expected behaviour:

5. generated file will contain following lines:

#ifndef INVALID_TEMPLATE_H
#define INVALID_TEMPLATE_H
Comment 1 Andreas Pakulat 2009-07-25 14:21:42 UTC
SVN commit 1002229 by apaku:

Replace '-' with '_' for the header guard as '-' is invalid
BUG:178661

 M  +1 -1      cppnewclass.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1002229