Bug 120957 - Include namespace in guard clause
Summary: Include namespace in guard clause
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 3.1   Edit
Hardware: All All
: P3 minor with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-14 16:01 EST by Ryan Boder CLA
Modified: 2020-09-04 15:26 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Boder CLA 2005-12-14 16:01:35 EST
When a new class is created the namepsace should be included in the

#ifndef CLASSNAME_H
#define CLASSNAME_H

clause. Otherwise there are problems when you have two classes with the same name in different namespaces. It should be

#ifndef NAMESPACE_CLASSNAME_H
#define NAMESPACE_CLASSNAME_H