diff options
author | Eugene Zelenko <eugene.zelenko@gmail.com> | 2018-02-16 23:40:07 +0000 |
---|---|---|
committer | Eugene Zelenko <eugene.zelenko@gmail.com> | 2018-02-16 23:40:07 +0000 |
commit | 25cae5a21f24a97b5214b45f7d8e645e4a8735a5 (patch) | |
tree | 8b2ec39c7950e354015ac668a7ffb0602dc85f64 /clang/lib/Basic/SourceLocation.cpp | |
parent | 769134dac3f1968495f7341882e6e7c719545ead (diff) | |
download | bcm5719-llvm-25cae5a21f24a97b5214b45f7d8e645e4a8735a5.tar.gz bcm5719-llvm-25cae5a21f24a97b5214b45f7d8e645e4a8735a5.zip |
[Basic] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC).
llvm-svn: 325412
Diffstat (limited to 'clang/lib/Basic/SourceLocation.cpp')
-rw-r--r-- | clang/lib/Basic/SourceLocation.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/clang/lib/Basic/SourceLocation.cpp b/clang/lib/Basic/SourceLocation.cpp index 89ddbc946a4..71f74e4d1ae 100644 --- a/clang/lib/Basic/SourceLocation.cpp +++ b/clang/lib/Basic/SourceLocation.cpp @@ -1,4 +1,4 @@ -//==--- SourceLocation.cpp - Compact identifier for Source Files -*- C++ -*-==// +//===- SourceLocation.cpp - Compact identifier for Source Files -----------===// // // The LLVM Compiler Infrastructure // @@ -12,10 +12,17 @@ //===----------------------------------------------------------------------===// #include "clang/Basic/SourceLocation.h" +#include "clang/Basic/LLVM.h" #include "clang/Basic/PrettyStackTrace.h" #include "clang/Basic/SourceManager.h" +#include "llvm/ADT/StringRef.h" +#include "llvm/Support/Compiler.h" +#include "llvm/Support/MemoryBuffer.h" #include "llvm/Support/raw_ostream.h" -#include <cstdio> +#include <cassert> +#include <string> +#include <utility> + using namespace clang; //===----------------------------------------------------------------------===// @@ -81,7 +88,6 @@ FileID FullSourceLoc::getFileID() const { return SrcMgr->getFileID(*this); } - FullSourceLoc FullSourceLoc::getExpansionLoc() const { assert(isValid()); return FullSourceLoc(SrcMgr->getExpansionLoc(*this), *SrcMgr); |