Skip to content

Commit e0fdb91

Browse files
committed
Remove redundant private access specifiers and 2 empty groups
1 parent 0839ee4 commit e0fdb91

File tree

1 file changed

+16
-67
lines changed

1 file changed

+16
-67
lines changed

clang/include/clang/Parse/Parser.h

Lines changed: 16 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -158,23 +158,21 @@ class Parser : public CodeCompletionHandler {
158158
// Table of Contents
159159
// -----------------
160160
// 1. Parsing (Parser.cpp)
161-
// 2. Parser Entry Point (ParseAST.cpp)
162-
// 3. C++ Class Inline Methods (ParseCXXInlineMethods.cpp)
163-
// 4. Declarations (ParseDecl.cpp)
164-
// 5. C++ Declarations (ParseDeclCXX.cpp)
165-
// 6. Expressions (ParseExpr.cpp)
166-
// 7. C++ Expressions (ParseExprCXX.cpp)
167-
// 8. HLSL Constructs (ParseHLSL.cpp)
168-
// 9. HLSL Root Signature (ParseHLSLRootSignature.cpp)
169-
// 10. Initializers (ParseInit.cpp)
170-
// 11. Objective-C Constructs (ParseObjc.cpp)
171-
// 12. OpenACC Constructs (ParseOpenACC.cpp)
172-
// 13. OpenMP Constructs (ParseOpenMP.cpp)
173-
// 14. Pragmas (ParsePragma.cpp)
174-
// 15. Statements (ParseStmt.cpp)
175-
// 16. `inline asm` Statement (ParseStmtAsm.cpp)
176-
// 17. C++ Templates (ParseTemplate.cpp)
177-
// 18. Tentative Parsing (ParseTentative.cpp)
161+
// 2. C++ Class Inline Methods (ParseCXXInlineMethods.cpp)
162+
// 3. Declarations (ParseDecl.cpp)
163+
// 4. C++ Declarations (ParseDeclCXX.cpp)
164+
// 5. Expressions (ParseExpr.cpp)
165+
// 6. C++ Expressions (ParseExprCXX.cpp)
166+
// 7. HLSL Constructs (ParseHLSL.cpp)
167+
// 8. Initializers (ParseInit.cpp)
168+
// 9. Objective-C Constructs (ParseObjc.cpp)
169+
// 10. OpenACC Constructs (ParseOpenACC.cpp)
170+
// 11. OpenMP Constructs (ParseOpenMP.cpp)
171+
// 12. Pragmas (ParsePragma.cpp)
172+
// 13. Statements (ParseStmt.cpp)
173+
// 14. `inline asm` Statement (ParseStmtAsm.cpp)
174+
// 15. C++ Templates (ParseTemplate.cpp)
175+
// 16. Tentative Parsing (ParseTentative.cpp)
178176

179177
/// \name Parsing
180178
/// Implementations are in Parser.cpp
@@ -1083,33 +1081,12 @@ class Parser : public CodeCompletionHandler {
10831081
//
10841082
//
10851083

1086-
/// \name Parser Entry Point
1087-
/// Implementations are in ParseAST.cpp
1088-
///@{
1089-
1090-
public:
1091-
1092-
private:
1093-
1094-
///@}
1095-
1096-
//
1097-
//
1098-
// -------------------------------------------------------------------------
1099-
//
1100-
//
1101-
11021084
/// \name C++ Class Inline Methods
11031085
/// Implementations are in ParseCXXInlineMethods.cpp
11041086
///@{
11051087

1106-
public:
1107-
11081088
private:
11091089

1110-
//===--------------------------------------------------------------------===//
1111-
// Lexing and parsing of C++ inline methods.
1112-
11131090
struct ParsingClass;
11141091

11151092
/// [class.mem]p1: "... the class is regarded as complete within
@@ -2761,8 +2738,6 @@ class Parser : public CodeCompletionHandler {
27612738
/// Implementations are in ParseDeclCXX.cpp
27622739
///@{
27632740

2764-
public:
2765-
27662741
private:
27672742

27682743
/// Contextual keywords for Microsoft extensions.
@@ -4982,8 +4957,6 @@ class Parser : public CodeCompletionHandler {
49824957
/// Implementations are in ParseHLSL.cpp
49834958
///@{
49844959

4985-
public:
4986-
49874960
private:
49884961

49894962
bool MaybeParseHLSLAnnotations(Declarator &D,
@@ -5019,28 +4992,10 @@ class Parser : public CodeCompletionHandler {
50194992
//
50204993
//
50214994

5022-
/// \name HLSL Root Signature
5023-
/// Implementations are in ParseHLSLRootSignature.cpp
5024-
///@{
5025-
5026-
public:
5027-
5028-
private:
5029-
5030-
///@}
5031-
5032-
//
5033-
//
5034-
// -------------------------------------------------------------------------
5035-
//
5036-
//
5037-
50384995
/// \name Initializers
50394996
/// Implementations are in ParseInit.cpp
50404997
///@{
50414998

5042-
public:
5043-
50444999
private:
50455000

50465001
//===--------------------------------------------------------------------===//
@@ -6068,12 +6023,10 @@ class Parser : public CodeCompletionHandler {
60686023
/// Implementations are in ParseOpenMP.cpp
60696024
///@{
60706025

6071-
public:
6026+
private:
60726027

60736028
friend class ParsingOpenMPDirectiveRAII;
60746029

6075-
private:
6076-
60776030
/// Parsing OpenMP directive mode.
60786031
bool OpenMPDirectiveParsing = false;
60796032

@@ -6716,8 +6669,6 @@ class Parser : public CodeCompletionHandler {
67166669
/// Implementations are in ParsePragma.cpp
67176670
///@{
67186671

6719-
public:
6720-
67216672
private:
67226673

67236674
std::unique_ptr<PragmaHandler> AlignHandler;
@@ -7987,8 +7938,6 @@ class Parser : public CodeCompletionHandler {
79877938
/// Implementations are in ParseTentative.cpp
79887939
///@{
79897940

7990-
public:
7991-
79927941
private:
79937942

79947943
/// TentativeParsingAction - An object that is used as a kind of "tentative

0 commit comments

Comments
 (0)