[clang-tools-extra] r263726 - Fix Clang-tidy modernize-deprecated-headers warnings; other minor fixes.
Eugene Zelenko via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 17 10:02:26 PDT 2016
Author: eugenezelenko
Date: Thu Mar 17 12:02:25 2016
New Revision: 263726
URL: http://llvm.org/viewvc/llvm-project?rev=263726&view=rev
Log:
Fix Clang-tidy modernize-deprecated-headers warnings; other minor fixes.
Differential revision: http://reviews.llvm.org/D18231
Modified:
clang-tools-extra/trunk/clang-query/QueryParser.h
clang-tools-extra/trunk/clang-rename/RenamingAction.cpp
clang-tools-extra/trunk/clang-rename/USRFindingAction.cpp
clang-tools-extra/trunk/clang-rename/tool/ClangRename.cpp
clang-tools-extra/trunk/pp-trace/PPCallbacksTracker.cpp
clang-tools-extra/trunk/unittests/clang-rename/USRLocFindingTest.cpp
Modified: clang-tools-extra/trunk/clang-query/QueryParser.h
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-query/QueryParser.h?rev=263726&r1=263725&r2=263726&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-query/QueryParser.h (original)
+++ clang-tools-extra/trunk/clang-query/QueryParser.h Thu Mar 17 12:02:25 2016
@@ -13,7 +13,7 @@
#include "Query.h"
#include "QuerySession.h"
#include "llvm/LineEditor/LineEditor.h"
-#include <stddef.h>
+#include <cstddef>
namespace clang {
namespace query {
@@ -69,4 +69,4 @@ private:
} // namespace query
} // namespace clang
-#endif
+#endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_QUERY_QUERY_PARSER_H
Modified: clang-tools-extra/trunk/clang-rename/RenamingAction.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-rename/RenamingAction.cpp?rev=263726&r1=263725&r2=263726&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-rename/RenamingAction.cpp (original)
+++ clang-tools-extra/trunk/clang-rename/RenamingAction.cpp Thu Mar 17 12:02:25 2016
@@ -24,9 +24,6 @@
#include "clang/Tooling/CommonOptionsParser.h"
#include "clang/Tooling/Refactoring.h"
#include "clang/Tooling/Tooling.h"
-#include <ctype.h>
-#include <stdio.h>
-#include <stdlib.h>
#include <string>
#include <vector>
@@ -86,5 +83,5 @@ std::unique_ptr<ASTConsumer> RenamingAct
Replaces, PrintLocations);
}
-}
-}
+} // namespace rename
+} // namespace clang
Modified: clang-tools-extra/trunk/clang-rename/USRFindingAction.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-rename/USRFindingAction.cpp?rev=263726&r1=263725&r2=263726&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-rename/USRFindingAction.cpp (original)
+++ clang-tools-extra/trunk/clang-rename/USRFindingAction.cpp Thu Mar 17 12:02:25 2016
@@ -25,9 +25,6 @@
#include "clang/Tooling/CommonOptionsParser.h"
#include "clang/Tooling/Refactoring.h"
#include "clang/Tooling/Tooling.h"
-#include <ctype.h>
-#include <stdio.h>
-#include <stdlib.h>
#include <string>
#include <vector>
Modified: clang-tools-extra/trunk/clang-rename/tool/ClangRename.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-rename/tool/ClangRename.cpp?rev=263726&r1=263725&r2=263726&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-rename/tool/ClangRename.cpp (original)
+++ clang-tools-extra/trunk/clang-rename/tool/ClangRename.cpp Thu Mar 17 12:02:25 2016
@@ -35,12 +35,8 @@
#include "clang/Tooling/Tooling.h"
#include "llvm/ADT/IntrusiveRefCntPtr.h"
#include "llvm/Support/Host.h"
-#include <ctype.h>
-#include <stdio.h>
-#include <stdlib.h>
+#include <cstdlib>
#include <string>
-#include <time.h>
-#include <vector>
using namespace llvm;
Modified: clang-tools-extra/trunk/pp-trace/PPCallbacksTracker.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/pp-trace/PPCallbacksTracker.cpp?rev=263726&r1=263725&r2=263726&view=diff
==============================================================================
--- clang-tools-extra/trunk/pp-trace/PPCallbacksTracker.cpp (original)
+++ clang-tools-extra/trunk/pp-trace/PPCallbacksTracker.cpp Thu Mar 17 12:02:25 2016
@@ -1,24 +1,22 @@
-//===--- PPCallbacksTracker.cpp - Preprocessor tracker -*--*-------------===//
+//===--- PPCallbacksTracker.cpp - Preprocessor tracker -*--*---------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
-//===--------------------------------------------------------------------===//
+//===----------------------------------------------------------------------===//
///
/// \file
/// \brief Implementations for preprocessor tracking.
///
/// See the header for details.
///
-//===--------------------------------------------------------------------===//
+//===----------------------------------------------------------------------===//
#include "PPCallbacksTracker.h"
#include "clang/Lex/MacroArgs.h"
#include "llvm/Support/raw_ostream.h"
-#include <stdarg.h>
-#include <stdio.h>
// Utility functions.
Modified: clang-tools-extra/trunk/unittests/clang-rename/USRLocFindingTest.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/unittests/clang-rename/USRLocFindingTest.cpp?rev=263726&r1=263725&r2=263726&view=diff
==============================================================================
--- clang-tools-extra/trunk/unittests/clang-rename/USRLocFindingTest.cpp (original)
+++ clang-tools-extra/trunk/unittests/clang-rename/USRLocFindingTest.cpp Thu Mar 17 12:02:25 2016
@@ -3,7 +3,6 @@
#include "gtest/gtest.h"
#include <map>
#include <set>
-#include <stdio.h>
#include <vector>
namespace clang {
@@ -79,6 +78,6 @@ void fun1() {\n\
testOffsetGroups(VarTest, VarTestOffsets);
}
-}
-}
-}
+} // namespace test
+} // namespace rename
+} // namespace clang
More information about the cfe-commits
mailing list