]> granicus.if.org Git - clang/commitdiff
NFC: tab => spaces
authorJingyue Wu <jingyue@google.com>
Fri, 29 May 2015 05:43:03 +0000 (05:43 +0000)
committerJingyue Wu <jingyue@google.com>
Fri, 29 May 2015 05:43:03 +0000 (05:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@238542 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaType.cpp

index 57a4689c6d7226c6f645b0b847ea6fe7d853896f..91859be9cad544a09e52b8dd11773d5a968c2c23 100644 (file)
@@ -2842,14 +2842,14 @@ static TypeSourceInfo *GetFullTypeForDeclarator(TypeProcessingState &state,
       if ((T.getCVRQualifiers() || T->isAtomicType()) &&
           !(S.getLangOpts().CPlusPlus &&
             (T->isDependentType() || T->isRecordType()))) {
-       if (T->isVoidType() && !S.getLangOpts().CPlusPlus &&
-           D.getFunctionDefinitionKind() == FDK_Definition) {
-         // [6.9.1/3] qualified void return is invalid on a C
-         // function definition.  Apparently ok on declarations and
-         // in C++ though (!)
-         S.Diag(DeclType.Loc, diag::err_func_returning_qualified_void) << T;
-       } else
-         diagnoseRedundantReturnTypeQualifiers(S, T, D, chunkIndex);
+        if (T->isVoidType() && !S.getLangOpts().CPlusPlus &&
+            D.getFunctionDefinitionKind() == FDK_Definition) {
+          // [6.9.1/3] qualified void return is invalid on a C
+          // function definition.  Apparently ok on declarations and
+          // in C++ though (!)
+          S.Diag(DeclType.Loc, diag::err_func_returning_qualified_void) << T;
+        } else
+          diagnoseRedundantReturnTypeQualifiers(S, T, D, chunkIndex);
       }
 
       // Objective-C ARC ownership qualifiers are ignored on the function