From 6683d8123a746563324cd80e7cd3f35803599a0f Mon Sep 17 00:00:00 2001 From: George Burgess IV Date: Tue, 14 Feb 2017 19:34:33 +0000 Subject: [PATCH] Finish a comment + remove trailing whitespace. NFC git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@295094 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/AST/DeclBase.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/include/clang/AST/DeclBase.h b/include/clang/AST/DeclBase.h index 5de1d0588e..e4894539bb 100644 --- a/include/clang/AST/DeclBase.h +++ b/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; } -- 2.40.0