Skip to content

Commit c70aeaa

Browse files
committed
[pseudo] Move grammar-related headers to a separate dir, NFC.
We did that for .cpp, but forgot the headers. Differential Revision: https://reviews.llvm.org/D127388
1 parent a7bd1ab commit c70aeaa

File tree

19 files changed

+37
-37
lines changed

19 files changed

+37
-37
lines changed

clang-tools-extra/pseudo/fuzzer/Fuzzer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
#include "clang-pseudo/DirectiveTree.h"
1010
#include "clang-pseudo/Forest.h"
1111
#include "clang-pseudo/GLR.h"
12-
#include "clang-pseudo/Grammar.h"
13-
#include "clang-pseudo/LRTable.h"
1412
#include "clang-pseudo/Token.h"
13+
#include "clang-pseudo/grammar/Grammar.h"
14+
#include "clang-pseudo/grammar/LRTable.h"
1515
#include "clang/Basic/LangOptions.h"
1616
#include "llvm/ADT/StringRef.h"
1717
#include "llvm/Support/MemoryBuffer.h"

clang-tools-extra/pseudo/gen/Main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15-
#include "clang-pseudo/Grammar.h"
15+
#include "clang-pseudo/grammar/Grammar.h"
1616
#include "llvm/ADT/StringExtras.h"
1717
#include "llvm/Support/CommandLine.h"
1818
#include "llvm/Support/FileSystem.h"

clang-tools-extra/pseudo/include/clang-pseudo/Forest.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
#ifndef CLANG_PSEUDO_FOREST_H
2121
#define CLANG_PSEUDO_FOREST_H
2222

23-
#include "clang-pseudo/Grammar.h"
2423
#include "clang-pseudo/Token.h"
24+
#include "clang-pseudo/grammar/Grammar.h"
2525
#include "llvm/ADT/ArrayRef.h"
2626
#include "llvm/ADT/STLExtras.h"
2727
#include "llvm/Support/Allocator.h"

clang-tools-extra/pseudo/include/clang-pseudo/GLR.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
#define CLANG_PSEUDO_GLR_H
3131

3232
#include "clang-pseudo/Forest.h"
33-
#include "clang-pseudo/Grammar.h"
34-
#include "clang-pseudo/LRTable.h"
33+
#include "clang-pseudo/grammar/Grammar.h"
34+
#include "clang-pseudo/grammar/LRTable.h"
3535
#include "llvm/Support/Allocator.h"
3636
#include <vector>
3737

clang-tools-extra/pseudo/include/clang-pseudo/cxx/CXX.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#ifndef CLANG_PSEUDO_CXX_CXX_H
2424
#define CLANG_PSEUDO_CXX_CXX_H
2525

26-
#include "clang-pseudo/Grammar.h"
26+
#include "clang-pseudo/grammar/Grammar.h"
2727

2828
namespace clang {
2929
namespace pseudo {

clang-tools-extra/pseudo/include/clang-pseudo/Grammar.h renamed to clang-tools-extra/pseudo/include/clang-pseudo/grammar/Grammar.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@
4949
//
5050
//===----------------------------------------------------------------------===//
5151

52-
#ifndef CLANG_PSEUDO_GRAMMAR_H
53-
#define CLANG_PSEUDO_GRAMMAR_H
52+
#ifndef CLANG_PSEUDO_GRAMMAR_GRAMMAR_H
53+
#define CLANG_PSEUDO_GRAMMAR_GRAMMAR_H
5454

5555
#include "clang/Basic/TokenKinds.h"
5656
#include "llvm/ADT/ArrayRef.h"
@@ -221,4 +221,4 @@ struct GrammarTable {
221221
} // namespace pseudo
222222
} // namespace clang
223223

224-
#endif // CLANG_PSEUDO_GRAMMAR_H
224+
#endif // CLANG_PSEUDO_GRAMMAR_GRAMMAR_H

clang-tools-extra/pseudo/include/clang-pseudo/LRGraph.h renamed to clang-tools-extra/pseudo/include/clang-pseudo/grammar/LRGraph.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@
2828
// in making decisions.
2929
//===----------------------------------------------------------------------===//
3030

31-
#ifndef CLANG_PSEUDO_LRGRAPH_H
32-
#define CLANG_PSEUDO_LRGRAPH_H
31+
#ifndef CLANG_PSEUDO_GRAMMAR_LRGRAPH_H
32+
#define CLANG_PSEUDO_GRAMMAR_LRGRAPH_H
3333

34-
#include "clang-pseudo/Grammar.h"
34+
#include "clang-pseudo/grammar/Grammar.h"
3535
#include "llvm/ADT/Hashing.h"
3636
#include <vector>
3737

@@ -178,4 +178,4 @@ template <> struct DenseMapInfo<clang::pseudo::Item> {
178178
};
179179
} // namespace llvm
180180

181-
#endif // CLANG_PSEUDO_LRGRAPH_H
181+
#endif // CLANG_PSEUDO_GRAMMAR_LRGRAPH_H

clang-tools-extra/pseudo/include/clang-pseudo/LRTable.h renamed to clang-tools-extra/pseudo/include/clang-pseudo/grammar/LRTable.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@
3333
//
3434
//===----------------------------------------------------------------------===//
3535

36-
#ifndef CLANG_PSEUDO_LRTABLE_H
37-
#define CLANG_PSEUDO_LRTABLE_H
36+
#ifndef CLANG_PSEUDO_GRAMMAR_LRTABLE_H
37+
#define CLANG_PSEUDO_GRAMMAR_LRTABLE_H
3838

39-
#include "clang-pseudo/Grammar.h"
39+
#include "clang-pseudo/grammar/Grammar.h"
4040
#include "llvm/ADT/ArrayRef.h"
4141
#include <cstdint>
4242
#include <vector>
@@ -189,4 +189,4 @@ llvm::raw_ostream &operator<<(llvm::raw_ostream &, const LRTable::Action &);
189189
} // namespace pseudo
190190
} // namespace clang
191191

192-
#endif // CLANG_PSEUDO_LRTABLE_H
192+
#endif // CLANG_PSEUDO_GRAMMAR_LRTABLE_H

clang-tools-extra/pseudo/lib/GLR.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
//===----------------------------------------------------------------------===//
88

99
#include "clang-pseudo/GLR.h"
10-
#include "clang-pseudo/Grammar.h"
11-
#include "clang-pseudo/LRTable.h"
10+
#include "clang-pseudo/grammar/Grammar.h"
11+
#include "clang-pseudo/grammar/LRTable.h"
1212
#include "clang/Basic/TokenKinds.h"
1313
#include "llvm/ADT/ArrayRef.h"
1414
#include "llvm/ADT/STLExtras.h"

clang-tools-extra/pseudo/lib/cxx/CXX.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//===----------------------------------------------------------------------===//
88

99
#include "clang-pseudo/cxx/CXX.h"
10-
#include "clang-pseudo/LRTable.h"
10+
#include "clang-pseudo/grammar/LRTable.h"
1111

1212
namespace clang {
1313
namespace pseudo {

0 commit comments

Comments
 (0)