]> granicus.if.org Git - clang/commitdiff
Format isInSystemMacro after D55782
authorFangrui Song <maskray@google.com>
Mon, 11 Feb 2019 13:30:04 +0000 (13:30 +0000)
committerFangrui Song <maskray@google.com>
Mon, 11 Feb 2019 13:30:04 +0000 (13:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@353697 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/SourceManager.h

index b45357e6452ab2781f2159b4e48fc3687c6a5f40..2bdf1d5e39f968f8a732af8d1f980e9406a61e82 100644 (file)
@@ -1458,17 +1458,15 @@ public:
 
   /// Returns whether \p Loc is expanded from a macro in a system header.
   bool isInSystemMacro(SourceLocation loc) const {
-    if(!loc.isMacroID())
+    if (!loc.isMacroID())
       return false;
 
     // This happens when the macro is the result of a paste, in that case
     // its spelling is the scratch memory, so we take the parent context.
-    if (isWrittenInScratchSpace(getSpellingLoc(loc))) {
+    if (isWrittenInScratchSpace(getSpellingLoc(loc)))
       return isInSystemHeader(getSpellingLoc(getImmediateMacroCallerLoc(loc)));
-    }
-    else {
-      return isInSystemHeader(getSpellingLoc(loc));
-    }
+
+    return isInSystemHeader(getSpellingLoc(loc));
   }
 
   /// The size of the SLocEntry that \p FID represents.