summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Burgess IV <george.burgess.iv@gmail.com>2017-02-14 19:34:33 +0000
committerGeorge Burgess IV <george.burgess.iv@gmail.com>2017-02-14 19:34:33 +0000
commit775e7612a20083b5e096892c10a62dad3abaa1c9 (patch)
treed017e9ac8c6951d85d85195123710f205f040cd5
parent399dcfaa2afbdee1c58a647113f1b774fbc14976 (diff)
downloadbcm5719-llvm-775e7612a20083b5e096892c10a62dad3abaa1c9.tar.gz
bcm5719-llvm-775e7612a20083b5e096892c10a62dad3abaa1c9.zip
Finish a comment + remove trailing whitespace. NFC
llvm-svn: 295094
-rw-r--r--clang/include/clang/AST/DeclBase.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/clang/include/clang/AST/DeclBase.h b/clang/include/clang/AST/DeclBase.h
index 5de1d0588e8..e4894539bb2 100644
--- a/clang/include/clang/AST/DeclBase.h
+++ b/clang/include/clang/AST/DeclBase.h
@@ -654,20 +654,19 @@ public:
/// a precompiled header or module) rather than having been parsed.
bool isFromASTFile() const { return FromASTFile; }
- /// \brief Retrieve the global declaration ID associated with this
- /// declaration, which specifies where in the
- unsigned getGlobalID() const {
+ /// \brief Retrieve the global declaration ID associated with this
+ /// declaration, which specifies where this Decl was loaded from.
+ unsigned getGlobalID() const {
if (isFromASTFile())
return *((const unsigned*)this - 1);
return 0;
}
-
+
/// \brief Retrieve the global ID of the module that owns this particular
/// declaration.
unsigned getOwningModuleID() const {
if (isFromASTFile())
return *((const unsigned*)this - 2);
-
return 0;
}
OpenPOWER on IntegriCloud