aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Basic/SourceManager.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-02-03 22:13:05 +0000
committerChris Lattner <sabre@nondot.org>2009-02-03 22:13:05 +0000
commitac50e3427cb9eb3dc9f13f29a78f00ef3122433d (patch)
treeb30e351cf2c346b0348791ac0f8d0eb61239ff1b /include/clang/Basic/SourceManager.h
parent0d7b091ffd100ca2cf51c686635a5d2bfbbad639 (diff)
more plumbing for #line propagation. Use happy bit #3
out of FileInfo :) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63672 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/SourceManager.h')
-rw-r--r--include/clang/Basic/SourceManager.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/clang/Basic/SourceManager.h b/include/clang/Basic/SourceManager.h
index a875f93c33..dd76f7896f 100644
--- a/include/clang/Basic/SourceManager.h
+++ b/include/clang/Basic/SourceManager.h
@@ -161,6 +161,16 @@ namespace SrcMgr {
CharacteristicKind getFileCharacteristic() const {
return (CharacteristicKind)(Data & 3);
}
+
+ /// hasLineDirectives - Return true if this FileID has #line directives in
+ /// it.
+ bool hasLineDirectives() const { return (Data & 4) != 0; }
+
+ /// setHasLineDirectives - Set the flag that indicates that this FileID has
+ /// line table entries associated with it.
+ void setHasLineDirectives() {
+ Data |= 4;
+ }
};
/// InstantiationInfo - Each InstantiationInfo encodes the Instantiation