]> granicus.if.org Git - clang/commitdiff
[cleanup] Re-sort includes with llvm/utils/sort_includes.py and fix
authorChandler Carruth <chandlerc@gmail.com>
Tue, 4 Mar 2014 10:05:20 +0000 (10:05 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Tue, 4 Mar 2014 10:05:20 +0000 (10:05 +0000)
a missing include from CLog.h.

CLog.h referenced most of the core libclang types but never directly
included Index.h that provides them. Previously it got lucky and other
headers were always included first but with the sorting it ended up
first in one case and stopped compiling. Adding the Index.h include
fixes it right up.

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

12 files changed:
include/clang/Basic/PlistSupport.h
include/clang/Basic/VirtualFileSystem.h
lib/Driver/Multilib.cpp
lib/Parse/ParseDecl.cpp
lib/Parse/ParseDeclCXX.cpp
lib/Parse/ParseExpr.cpp
lib/Parse/ParseExprCXX.cpp
tools/libclang/BuildSystem.cpp
tools/libclang/CLog.h
tools/libclang/CXTranslationUnit.h
unittests/Driver/MultilibTest.cpp
utils/TableGen/ClangAttrEmitter.cpp

index e636ce2a10a711a639619df6d2b3a7de8e35d658..64853f932a4dbd776475425eb370766b1b47c9a5 100644 (file)
 #ifndef LLVM_CLANG_PLISTSUPPORT_H
 #define LLVM_CLANG_PLISTSUPPORT_H
 
-#include "llvm/Support/raw_ostream.h"
 #include "clang/Basic/FileManager.h"
 #include "clang/Basic/SourceManager.h"
 #include "clang/Lex/Lexer.h"
+#include "llvm/Support/raw_ostream.h"
 
 namespace clang {
 namespace markup {
index a486b5bc8916175ec0d5719621152a60999cec0d..3d33c630fe91866aecb7fb9af13f8e61471bcd20 100644 (file)
@@ -15,8 +15,8 @@
 
 #include "clang/Basic/LLVM.h"
 #include "llvm/ADT/IntrusiveRefCntPtr.h"
-#include "llvm/Support/FileSystem.h"
 #include "llvm/Support/ErrorOr.h"
+#include "llvm/Support/FileSystem.h"
 #include "llvm/Support/SourceMgr.h"
 
 namespace llvm {
index d8b6a45b3674d20b8c5cc9ac6e156c9ce4c3e6d5..910e6383f28e33afe2c413ff7f5ffa5388fdfd36 100644 (file)
 #include "llvm/Option/Option.h"
 #include "llvm/Support/MemoryBuffer.h"
 #include "llvm/Support/Path.h"
-#include "llvm/Support/raw_ostream.h"
 #include "llvm/Support/Regex.h"
 #include "llvm/Support/YAMLParser.h"
 #include "llvm/Support/YAMLTraits.h"
+#include "llvm/Support/raw_ostream.h"
 #include <algorithm>
 
 using namespace clang::driver;
index 561683f03886a5e5f8dde5c61291e5ea1343edde..e007998be389d938619b763a9d0f6eec7ec34c61 100644 (file)
@@ -13,8 +13,8 @@
 
 #include "clang/Parse/Parser.h"
 #include "RAIIObjectsForParser.h"
-#include "clang/AST/DeclTemplate.h"
 #include "clang/AST/ASTContext.h"
+#include "clang/AST/DeclTemplate.h"
 #include "clang/Basic/AddressSpaces.h"
 #include "clang/Basic/CharInfo.h"
 #include "clang/Parse/ParseDiagnostic.h"
index 33d1040759460b2da913be8188f5341dc5c629d7..c7c8625f2c0c2aa4edf3a705f87d88cce6953496 100644 (file)
@@ -13,8 +13,8 @@
 
 #include "clang/Parse/Parser.h"
 #include "RAIIObjectsForParser.h"
-#include "clang/AST/DeclTemplate.h"
 #include "clang/AST/ASTContext.h"
+#include "clang/AST/DeclTemplate.h"
 #include "clang/Basic/CharInfo.h"
 #include "clang/Basic/OperatorKinds.h"
 #include "clang/Parse/ParseDiagnostic.h"
index 9e06aff2a1e557d97c66ded5567f37618427bd27..fca6dcda3dd957a6f0d733e79f85a98d828929dd 100644 (file)
@@ -23,6 +23,7 @@
 
 #include "clang/Parse/Parser.h"
 #include "RAIIObjectsForParser.h"
+#include "clang/AST/ASTContext.h"
 #include "clang/Basic/PrettyStackTrace.h"
 #include "clang/Sema/DeclSpec.h"
 #include "clang/Sema/ParsedTemplate.h"
@@ -30,7 +31,6 @@
 #include "clang/Sema/TypoCorrection.h"
 #include "llvm/ADT/SmallString.h"
 #include "llvm/ADT/SmallVector.h"
-#include "clang/AST/ASTContext.h"
 using namespace clang;
 
 /// \brief Simple precedence-based parser for binary/ternary operators.
index a74b311395b0e323a516b3dafb6da300e44ddd9a..6fd920e7e8dcbf4fad79eada0aa9232925727015 100644 (file)
@@ -11,8 +11,8 @@
 //
 //===----------------------------------------------------------------------===//
 #include "clang/AST/ASTContext.h"
-#include "clang/AST/DeclTemplate.h"
 #include "RAIIObjectsForParser.h"
+#include "clang/AST/DeclTemplate.h"
 #include "clang/Basic/PrettyStackTrace.h"
 #include "clang/Lex/LiteralSupport.h"
 #include "clang/Parse/ParseDiagnostic.h"
index ce3762b5be22eb4dcdf8585c087834f7c6a68d86..4b151e64d582df07620408af3ac46e1b0b2bf7f3 100644 (file)
@@ -16,8 +16,8 @@
 #include "llvm/ADT/ArrayRef.h"
 #include "llvm/ADT/SmallString.h"
 #include "llvm/Support/Path.h"
-#include "llvm/Support/raw_ostream.h"
 #include "llvm/Support/TimeValue.h"
+#include "llvm/Support/raw_ostream.h"
 
 using namespace clang;
 using namespace llvm::sys;
index 8bf224a1e0a98a5947c02eb00be66cd3789be289..fe6c218bbaa5c78fd2e28db4a4f6ca1a12bdb2b5 100644 (file)
@@ -10,6 +10,7 @@
 #ifndef LLVM_LIBCLANG_CLOG_H
 #define LLVM_LIBCLANG_CLOG_H
 
+#include "clang-c/Index.h"
 #include "clang/Basic/LLVM.h"
 #include "llvm/ADT/IntrusiveRefCntPtr.h"
 #include "llvm/ADT/SmallString.h"
index 0dbb0024b2603a71885504493f505c36dda45a78..13183becf79653cfb9cb3285632b8eb3b1119818 100644 (file)
@@ -14,8 +14,8 @@
 #ifndef LLVM_CLANG_CXTRANSLATIONUNIT_H
 #define LLVM_CLANG_CXTRANSLATIONUNIT_H
 
-#include "CXString.h"
 #include "CLog.h"
+#include "CXString.h"
 #include "clang-c/Index.h"
 
 namespace clang {
index 1d8760ddd2f6b44d828eddae168603d1c81cffab..dceace536f0f4fdd24f85a991fc423cd9acef7ce 100644 (file)
@@ -13,9 +13,9 @@
 
 #include "clang/Driver/Multilib.h"
 #include "clang/Basic/LLVM.h"
-#include "gtest/gtest.h"
-#include "llvm/ADT/StringSwitch.h"
 #include "llvm/ADT/StringRef.h"
+#include "llvm/ADT/StringSwitch.h"
+#include "gtest/gtest.h"
 
 using namespace clang::driver;
 using namespace clang;
index fd9b4e38db64d0cad8f48580c0d59aa311ec68b6..44f14229f70393ec75c20cd3dbabb1a81994f735 100644 (file)
@@ -12,9 +12,9 @@
 //===----------------------------------------------------------------------===//
 
 #include "llvm/ADT/SmallString.h"
+#include "llvm/ADT/STLExtras.h"
 #include "llvm/ADT/SmallSet.h"
 #include "llvm/ADT/StringSwitch.h"
-#include "llvm/ADT/STLExtras.h"
 #include "llvm/TableGen/Error.h"
 #include "llvm/TableGen/Record.h"
 #include "llvm/TableGen/StringMatcher.h"