Skip to content

Commit b0cbf3a

Browse files
committed
[NFC] remove unneded header includes
This time from clang/Parse. Differential Revision: https://reviews.llvm.org/D159435
1 parent 7d6283f commit b0cbf3a

File tree

3 files changed

+5
-14
lines changed

3 files changed

+5
-14
lines changed

clang/include/clang/Parse/LoopHint.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
#ifndef LLVM_CLANG_PARSE_LOOPHINT_H
1010
#define LLVM_CLANG_PARSE_LOOPHINT_H
1111

12-
#include "clang/Basic/IdentifierTable.h"
1312
#include "clang/Basic/SourceLocation.h"
14-
#include "clang/Sema/Ownership.h"
15-
#include "clang/Sema/ParsedAttr.h"
1613

1714
namespace clang {
1815

16+
class Expr;
17+
struct IdentifierLoc;
18+
1919
/// Loop optimization hint for loop and unroll pragmas.
2020
struct LoopHint {
2121
// Source range of the directive.

clang/include/clang/Parse/Parser.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,13 @@
1313
#ifndef LLVM_CLANG_PARSE_PARSER_H
1414
#define LLVM_CLANG_PARSE_PARSER_H
1515

16-
#include "clang/AST/Availability.h"
17-
#include "clang/Basic/BitmaskEnum.h"
18-
#include "clang/Basic/OpenMPKinds.h"
1916
#include "clang/Basic/OperatorPrecedence.h"
20-
#include "clang/Basic/Specifiers.h"
21-
#include "clang/Basic/TokenKinds.h"
2217
#include "clang/Lex/CodeCompletionHandler.h"
2318
#include "clang/Lex/Preprocessor.h"
24-
#include "clang/Sema/DeclSpec.h"
2519
#include "clang/Sema/Sema.h"
2620
#include "llvm/ADT/SmallVector.h"
2721
#include "llvm/Frontend/OpenMP/OMPContext.h"
28-
#include "llvm/Support/Compiler.h"
29-
#include "llvm/Support/PrettyStackTrace.h"
3022
#include "llvm/Support/SaveAndRestore.h"
31-
#include <memory>
3223
#include <optional>
3324
#include <stack>
3425

clang/include/clang/Parse/RAIIObjectsForParser.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
#define LLVM_CLANG_PARSE_RAIIOBJECTSFORPARSER_H
1616

1717
#include "clang/Parse/ParseDiagnostic.h"
18-
#include "clang/Parse/Parser.h"
1918
#include "clang/Sema/DelayedDiagnostic.h"
20-
#include "clang/Sema/ParsedTemplate.h"
2119
#include "clang/Sema/Sema.h"
2220

2321
namespace clang {
22+
class ParsedAttributes;
23+
2424
// TODO: move ParsingClassDefinition here.
2525
// TODO: move TentativeParsingAction here.
2626

0 commit comments

Comments
 (0)