diff options
author | Eugene Zelenko <eugene.zelenko@gmail.com> | 2016-11-29 18:24:01 +0000 |
---|---|---|
committer | Eugene Zelenko <eugene.zelenko@gmail.com> | 2016-11-29 18:24:01 +0000 |
commit | fc1f0ceb3d082ff1a5e0e43637b62a967d68fcb4 (patch) | |
tree | 12ace06afdff4f958f0ad154e6e63a0c3c8082bb /pp-trace | |
parent | 950b7664920eccefbffa4fb56f07cb9ff818529e (diff) | |
download | clang-tools-extra-fc1f0ceb3d082ff1a5e0e43637b62a967d68fcb4.tar.gz |
Fix some Clang-tidy modernize-use-default and Include What You Use warnings; other minor fixes (NFC).
This preparation to remove SetVector.h dependency on SmallSet.h.
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@288175 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'pp-trace')
-rw-r--r-- | pp-trace/PPCallbacksTracker.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/pp-trace/PPCallbacksTracker.h b/pp-trace/PPCallbacksTracker.h index f91d1bc2..c38e03d7 100644 --- a/pp-trace/PPCallbacksTracker.h +++ b/pp-trace/PPCallbacksTracker.h @@ -1,11 +1,11 @@ -//===--- PPCallbacksTracker.h - Preprocessor tracking -*- C++ -*---------===// +//===--- PPCallbacksTracker.h - Preprocessor tracking -----------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // -//===--------------------------------------------------------------------===// +//===----------------------------------------------------------------------===// /// /// \file /// \brief Classes and definitions for preprocessor tracking. @@ -17,13 +17,19 @@ /// record the preprocessor callback name and arguments in high-level string /// form for later inspection. /// -//===--------------------------------------------------------------------===// +//===----------------------------------------------------------------------===// #ifndef PPTRACE_PPCALLBACKSTRACKER_H #define PPTRACE_PPCALLBACKSTRACKER_H #include "clang/Lex/PPCallbacks.h" #include "clang/Lex/Preprocessor.h" +#include "clang/Basic/SourceManager.h" +#include "llvm/ADT/ArrayRef.h" +#include "llvm/ADT/SmallSet.h" +#include "llvm/ADT/StringRef.h" +#include <string> +#include <vector> /// \brief This class represents one callback function argument by name /// and value. @@ -31,7 +37,7 @@ class Argument { public: Argument(llvm::StringRef Name, llvm::StringRef Value) : Name(Name), Value(Value) {} - Argument() {} + Argument() = default; std::string Name; std::string Value; @@ -42,7 +48,7 @@ public: class CallbackCall { public: CallbackCall(llvm::StringRef Name) : Name(Name) {} - CallbackCall() {} + CallbackCall() = default; std::string Name; std::vector<Argument> Arguments; |