[LLVMbugs] [Bug 109] New: LLVM Source Code Should Use A C++ Namespace For Easier Integration
bugzilla-daemon at zion.cs.uiuc.edu
bugzilla-daemon at zion.cs.uiuc.edu
Mon Nov 10 20:02:10 PST 2003
http://llvm.cs.uiuc.edu/bugs/show_bug.cgi?id=109
Summary: LLVM Source Code Should Use A C++ Namespace For Easier
Integration
Product: libraries
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: minor
Priority: P2
Component: Core LLVM classes
AssignedTo: rspencer at x10sys.com
ReportedBy: rspencer at x10sys.com
LLVM currently uses a log of global classes and functions. When attempting to
incorporate LLVM into a larger project or even write a compiler for it,
developers for the larger project will want to be certain that LLVM is properly
scoped and does not contribute functions/variables/classes to the global namespace.
The change needed is to visit every header file and wrap the declaration
contents with:
namespace llvm {
...
} // End llvm namespace
Each .cpp file could use the same wrapping or just delcare
using namespace llvm;
at the top. This will effectively handle putting everything in an "llvm" namespace.
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the llvm-bugs
mailing list