]> granicus.if.org Git - clang/commitdiff
Re-sort all the headers. Lots of regressions have crept in here.
authorChandler Carruth <chandlerc@gmail.com>
Sat, 19 Jan 2013 08:09:44 +0000 (08:09 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sat, 19 Jan 2013 08:09:44 +0000 (08:09 +0000)
Manually fix the order of UnwrappedLineParser.cpp as that one didn't
have its associated header as the first header.

This also uncovered a subtle inclusion order dependency as CLog.h didn't
include LLVM.h to pick up using declarations it relied upon.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172892 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ARCMigrate/TransProtectedScope.cpp
lib/CodeGen/CGException.cpp
lib/Format/UnwrappedLineParser.cpp
lib/Format/UnwrappedLineParser.h
tools/libclang/CIndex.cpp
tools/libclang/CIndexCodeCompletion.cpp
tools/libclang/CIndexHigh.cpp
tools/libclang/CLog.h
tools/libclang/CXSourceLocation.cpp
tools/libclang/Indexing.cpp
unittests/Format/FormatTest.cpp

index 843680a521d9a2f1a6a2d1773d6a642052463108..b8b25f25941cec057c765d90300fb408230d92e8 100644 (file)
@@ -14,8 +14,8 @@
 
 #include "Transforms.h"
 #include "Internals.h"
-#include "clang/Sema/SemaDiagnostic.h"
 #include "clang/AST/ASTContext.h"
+#include "clang/Sema/SemaDiagnostic.h"
 
 using namespace clang;
 using namespace arcmt;
index 58ef3ae1a8098d0ffef06f2fda9b28c338a807d3..7e51ec59fbc85dd10f1e5f189b3765e5f622db69 100644 (file)
@@ -15,8 +15,8 @@
 #include "CGCleanup.h"
 #include "CGObjCRuntime.h"
 #include "TargetInfo.h"
-#include "clang/AST/StmtObjC.h"
 #include "clang/AST/StmtCXX.h"
+#include "clang/AST/StmtObjC.h"
 #include "llvm/IR/Intrinsics.h"
 #include "llvm/Support/CallSite.h"
 
index a0a18ac1cfc4859bcf63e0f6495308558e759439..393416de029c389b4b0c1984bbb420d32908760b 100644 (file)
@@ -18,9 +18,9 @@
 
 #define DEBUG_TYPE "format-parser"
 
+#include "UnwrappedLineParser.h"
 #include "clang/Basic/Diagnostic.h"
 #include "llvm/Support/Debug.h"
-#include "UnwrappedLineParser.h"
 
 // Uncomment to get debug output from tests:
 // #define DEBUG_WITH_TYPE(T, X) do { X; } while(0)
index 7a999e7892fa11cb6ff87a7d148110af804b003e..010569af7b34348b3d1006e16c7b90bf33f14363 100644 (file)
@@ -23,7 +23,6 @@
 #include "clang/Basic/SourceManager.h"
 #include "clang/Format/Format.h"
 #include "clang/Lex/Lexer.h"
-
 #include <list>
 
 namespace clang {
index 6f790ae6852067db50ce84761758054e130377c3..7d999b86fbb5677b25a3405fbe3502b7049ebe66 100644 (file)
@@ -14,6 +14,7 @@
 
 #include "CIndexer.h"
 #include "CIndexDiagnostic.h"
+#include "CLog.h"
 #include "CXComment.h"
 #include "CXCursor.h"
 #include "CXSourceLocation.h"
@@ -21,7 +22,6 @@
 #include "CXTranslationUnit.h"
 #include "CXType.h"
 #include "CursorVisitor.h"
-#include "CLog.h"
 #include "SimpleFormatContext.h"
 #include "clang/AST/StmtVisitor.h"
 #include "clang/Basic/Diagnostic.h"
 #include "llvm/ADT/Optional.h"
 #include "llvm/ADT/STLExtras.h"
 #include "llvm/ADT/StringSwitch.h"
+#include "llvm/Config/config.h"
 #include "llvm/Support/Compiler.h"
 #include "llvm/Support/CrashRecoveryContext.h"
+#include "llvm/Support/Format.h"
 #include "llvm/Support/MemoryBuffer.h"
 #include "llvm/Support/Mutex.h"
 #include "llvm/Support/PrettyStackTrace.h"
@@ -47,8 +49,6 @@
 #include "llvm/Support/Threading.h"
 #include "llvm/Support/Timer.h"
 #include "llvm/Support/raw_ostream.h"
-#include "llvm/Support/Format.h"
-#include "llvm/Config/config.h"
 
 #if HAVE_PTHREAD_H
 #include <pthread.h>
index 6bd31e786e89d7b6e00f702feaf11948f22dd376..57588c79e77e2b2ad65fb0459aab19a9f56a07be 100644 (file)
 
 #include "CIndexer.h"
 #include "CIndexDiagnostic.h"
+#include "CLog.h"
 #include "CXCursor.h"
 #include "CXString.h"
 #include "CXTranslationUnit.h"
-#include "CLog.h"
 #include "clang/AST/Decl.h"
 #include "clang/AST/DeclObjC.h"
 #include "clang/AST/Type.h"
index 81aa5b39db427b1f83eb2042c22744e0d13281fc..a2c32fe050088d971c139d187df49e9bd91f76a6 100644 (file)
@@ -8,10 +8,10 @@
 //===----------------------------------------------------------------------===//
 
 #include "CursorVisitor.h"
+#include "CLog.h"
 #include "CXCursor.h"
 #include "CXSourceLocation.h"
 #include "CXTranslationUnit.h"
-#include "CLog.h"
 #include "clang/AST/DeclObjC.h"
 #include "clang/Frontend/ASTUnit.h"
 #include "llvm/Support/Compiler.h"
index c3dcb57793915357d5aa61aa7997795edbb26846..3ac40d56e7fa0d1cdfc1105fe895cbee7c791dbb 100644 (file)
@@ -10,6 +10,7 @@
 #ifndef LLVM_LIBCLANG_CLOG_H
 #define LLVM_LIBCLANG_CLOG_H
 
+#include "clang/Basic/LLVM.h"
 #include "llvm/ADT/IntrusiveRefCntPtr.h"
 #include "llvm/ADT/SmallString.h"
 #include "llvm/ADT/StringRef.h"
index 2b3a300f0dee00a57000b5d42f15e0f8026e5fd1..fcc78774ee80257e86bed379c31d3055c46c19a4 100644 (file)
 
 #include "clang/Frontend/ASTUnit.h"
 #include "CIndexer.h"
+#include "CLog.h"
 #include "CXLoadedDiagnostic.h"
 #include "CXSourceLocation.h"
 #include "CXString.h"
 #include "CXTranslationUnit.h"
-#include "CLog.h"
 #include "llvm/Support/Compiler.h"
 #include "llvm/Support/Format.h"
 
index 53a16ae70387237e2001d43e95aac55d6f449efe..3bbd74a9b2ec9feb31f7695a58f26f846bd616c0 100644 (file)
 #include "IndexingContext.h"
 #include "CIndexDiagnostic.h"
 #include "CIndexer.h"
+#include "CLog.h"
 #include "CXCursor.h"
 #include "CXSourceLocation.h"
 #include "CXString.h"
 #include "CXTranslationUnit.h"
-#include "CLog.h"
 #include "clang/AST/ASTConsumer.h"
 #include "clang/AST/DeclVisitor.h"
 #include "clang/Frontend/ASTUnit.h"
index 1434f32e2f395e3e906d6192672e802506ed3d13..c9319d59390001297e783429d09e68836b176a41 100644 (file)
 #define DEBUG_TYPE "format-test"
 
 #include "clang/Format/Format.h"
+#include "../Tooling/RewriterTestContext.h"
 #include "clang/Lex/Lexer.h"
-#include "gtest/gtest.h"
 #include "llvm/Support/Debug.h"
-#include "../Tooling/RewriterTestContext.h"
+#include "gtest/gtest.h"
 
 // Uncomment to get debug output from tests:
 // #define DEBUG_WITH_TYPE(T, X) do { X; } while(0)