[clang] b0cbf3a - [NFC] remove unneded header includes
Bill Wendling via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 5 13:12:11 PDT 2023
Author: Bill Wendling
Date: 2023-09-05T13:12:01-07:00
New Revision: b0cbf3a0dac51d426dd38c307f745e74f409aed7
URL: https://github.com/llvm/llvm-project/commit/b0cbf3a0dac51d426dd38c307f745e74f409aed7
DIFF: https://github.com/llvm/llvm-project/commit/b0cbf3a0dac51d426dd38c307f745e74f409aed7.diff
LOG: [NFC] remove unneded header includes
This time from clang/Parse.
Differential Revision: https://reviews.llvm.org/D159435
Added:
Modified:
clang/include/clang/Parse/LoopHint.h
clang/include/clang/Parse/Parser.h
clang/include/clang/Parse/RAIIObjectsForParser.h
Removed:
################################################################################
diff --git a/clang/include/clang/Parse/LoopHint.h b/clang/include/clang/Parse/LoopHint.h
index 75705fcd4c75ca..cec5605ea36156 100644
--- a/clang/include/clang/Parse/LoopHint.h
+++ b/clang/include/clang/Parse/LoopHint.h
@@ -9,13 +9,13 @@
#ifndef LLVM_CLANG_PARSE_LOOPHINT_H
#define LLVM_CLANG_PARSE_LOOPHINT_H
-#include "clang/Basic/IdentifierTable.h"
#include "clang/Basic/SourceLocation.h"
-#include "clang/Sema/Ownership.h"
-#include "clang/Sema/ParsedAttr.h"
namespace clang {
+class Expr;
+struct IdentifierLoc;
+
/// Loop optimization hint for loop and unroll pragmas.
struct LoopHint {
// Source range of the directive.
diff --git a/clang/include/clang/Parse/Parser.h b/clang/include/clang/Parse/Parser.h
index c4dff165a13041..f599b8b98d031f 100644
--- a/clang/include/clang/Parse/Parser.h
+++ b/clang/include/clang/Parse/Parser.h
@@ -13,22 +13,13 @@
#ifndef LLVM_CLANG_PARSE_PARSER_H
#define LLVM_CLANG_PARSE_PARSER_H
-#include "clang/AST/Availability.h"
-#include "clang/Basic/BitmaskEnum.h"
-#include "clang/Basic/OpenMPKinds.h"
#include "clang/Basic/OperatorPrecedence.h"
-#include "clang/Basic/Specifiers.h"
-#include "clang/Basic/TokenKinds.h"
#include "clang/Lex/CodeCompletionHandler.h"
#include "clang/Lex/Preprocessor.h"
-#include "clang/Sema/DeclSpec.h"
#include "clang/Sema/Sema.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/Frontend/OpenMP/OMPContext.h"
-#include "llvm/Support/Compiler.h"
-#include "llvm/Support/PrettyStackTrace.h"
#include "llvm/Support/SaveAndRestore.h"
-#include <memory>
#include <optional>
#include <stack>
diff --git a/clang/include/clang/Parse/RAIIObjectsForParser.h b/clang/include/clang/Parse/RAIIObjectsForParser.h
index cb525c9d0edd6b..dbcecb4ee30079 100644
--- a/clang/include/clang/Parse/RAIIObjectsForParser.h
+++ b/clang/include/clang/Parse/RAIIObjectsForParser.h
@@ -15,12 +15,12 @@
#define LLVM_CLANG_PARSE_RAIIOBJECTSFORPARSER_H
#include "clang/Parse/ParseDiagnostic.h"
-#include "clang/Parse/Parser.h"
#include "clang/Sema/DelayedDiagnostic.h"
-#include "clang/Sema/ParsedTemplate.h"
#include "clang/Sema/Sema.h"
namespace clang {
+ class ParsedAttributes;
+
// TODO: move ParsingClassDefinition here.
// TODO: move TentativeParsingAction here.
More information about the cfe-commits
mailing list