aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Basic/SourceLocation.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-01-19 06:57:37 +0000
committerChris Lattner <sabre@nondot.org>2009-01-19 06:57:37 +0000
commit9ebac5e0dab6f99717e3ff169c45048966146b2e (patch)
tree2a08d4febab550367a34b760fc92fe2ab12ef442 /include/clang/Basic/SourceLocation.h
parent4d10ef18c32eae35be07e0d8d18b5ff485b4c5f9 (diff)
Make some enums in SourceLocation private, remove a useless assertion from ScratchBuffer.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62492 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/SourceLocation.h')
-rw-r--r--include/clang/Basic/SourceLocation.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/clang/Basic/SourceLocation.h b/include/clang/Basic/SourceLocation.h
index 2e0fb4d670..5c52906723 100644
--- a/include/clang/Basic/SourceLocation.h
+++ b/include/clang/Basic/SourceLocation.h
@@ -65,7 +65,6 @@ private:
class SourceLocation {
unsigned ID;
friend class SourceManager;
-public:
enum {
// FileID Layout:
// bit 31: 0 -> FileID, 1 -> MacroID (invalid for FileID)
@@ -88,6 +87,7 @@ public:
// Useful constants.
ChunkSize = (1 << FilePosBits)
};
+public:
SourceLocation() : ID(0) {} // 0 is an invalid FileID.