diff options
author | Eugene Zelenko <eugene.zelenko@gmail.com> | 2017-11-08 00:39:18 +0000 |
---|---|---|
committer | Eugene Zelenko <eugene.zelenko@gmail.com> | 2017-11-08 00:39:18 +0000 |
commit | 0d00c899955d078c6e00ab5e1042308b09969471 (patch) | |
tree | e84bfdeef093ae5b31880e5637207116ec9cab12 /clang/lib/AST/ExternalASTSource.cpp | |
parent | 76036fce25cbba79885bc9c2da228f06e022e63b (diff) | |
download | bcm5719-llvm-0d00c899955d078c6e00ab5e1042308b09969471.tar.gz bcm5719-llvm-0d00c899955d078c6e00ab5e1042308b09969471.zip |
[AST] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC).
llvm-svn: 317644
Diffstat (limited to 'clang/lib/AST/ExternalASTSource.cpp')
-rw-r--r-- | clang/lib/AST/ExternalASTSource.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/clang/lib/AST/ExternalASTSource.cpp b/clang/lib/AST/ExternalASTSource.cpp index 182d38242f5..198ba9d4fbd 100644 --- a/clang/lib/AST/ExternalASTSource.cpp +++ b/clang/lib/AST/ExternalASTSource.cpp @@ -1,4 +1,4 @@ -//===- ExternalASTSource.cpp - Abstract External AST Interface --*- C++ -*-===// +//===- ExternalASTSource.cpp - Abstract External AST Interface ------------===// // // The LLVM Compiler Infrastructure // @@ -16,12 +16,16 @@ #include "clang/AST/ExternalASTSource.h" #include "clang/AST/ASTContext.h" #include "clang/AST/DeclarationName.h" +#include "clang/Basic/IdentifierTable.h" +#include "clang/Basic/LLVM.h" #include "clang/Basic/Module.h" +#include "llvm/ADT/None.h" #include "llvm/Support/ErrorHandling.h" +#include <cstdint> using namespace clang; -ExternalASTSource::~ExternalASTSource() { } +ExternalASTSource::~ExternalASTSource() = default; llvm::Optional<ExternalASTSource::ASTSourceDescriptor> ExternalASTSource::getSourceDescriptor(unsigned ID) { @@ -66,7 +70,7 @@ void ExternalASTSource::FinishedDeserializing() {} void ExternalASTSource::StartTranslationUnit(ASTConsumer *Consumer) {} -void ExternalASTSource::PrintStats() { } +void ExternalASTSource::PrintStats() {} bool ExternalASTSource::layoutRecordType( const RecordDecl *Record, uint64_t &Size, uint64_t &Alignment, |