Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove redundant private access specifiers and 2 empty groups
  • Loading branch information
Endilll committed May 3, 2025
commit e0fdb91966d90d323c24d22c94370e5174c734b1
83 changes: 16 additions & 67 deletions clang/include/clang/Parse/Parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,23 +158,21 @@ class Parser : public CodeCompletionHandler {
// Table of Contents
// -----------------
// 1. Parsing (Parser.cpp)
// 2. Parser Entry Point (ParseAST.cpp)
// 3. C++ Class Inline Methods (ParseCXXInlineMethods.cpp)
// 4. Declarations (ParseDecl.cpp)
// 5. C++ Declarations (ParseDeclCXX.cpp)
// 6. Expressions (ParseExpr.cpp)
// 7. C++ Expressions (ParseExprCXX.cpp)
// 8. HLSL Constructs (ParseHLSL.cpp)
// 9. HLSL Root Signature (ParseHLSLRootSignature.cpp)
// 10. Initializers (ParseInit.cpp)
// 11. Objective-C Constructs (ParseObjc.cpp)
// 12. OpenACC Constructs (ParseOpenACC.cpp)
// 13. OpenMP Constructs (ParseOpenMP.cpp)
// 14. Pragmas (ParsePragma.cpp)
// 15. Statements (ParseStmt.cpp)
// 16. `inline asm` Statement (ParseStmtAsm.cpp)
// 17. C++ Templates (ParseTemplate.cpp)
// 18. Tentative Parsing (ParseTentative.cpp)
// 2. C++ Class Inline Methods (ParseCXXInlineMethods.cpp)
// 3. Declarations (ParseDecl.cpp)
// 4. C++ Declarations (ParseDeclCXX.cpp)
// 5. Expressions (ParseExpr.cpp)
// 6. C++ Expressions (ParseExprCXX.cpp)
// 7. HLSL Constructs (ParseHLSL.cpp)
// 8. Initializers (ParseInit.cpp)
// 9. Objective-C Constructs (ParseObjc.cpp)
// 10. OpenACC Constructs (ParseOpenACC.cpp)
// 11. OpenMP Constructs (ParseOpenMP.cpp)
// 12. Pragmas (ParsePragma.cpp)
// 13. Statements (ParseStmt.cpp)
// 14. `inline asm` Statement (ParseStmtAsm.cpp)
// 15. C++ Templates (ParseTemplate.cpp)
// 16. Tentative Parsing (ParseTentative.cpp)

/// \name Parsing
/// Implementations are in Parser.cpp
Expand Down Expand Up @@ -1083,33 +1081,12 @@ class Parser : public CodeCompletionHandler {
//
//

/// \name Parser Entry Point
/// Implementations are in ParseAST.cpp
///@{

public:

private:

///@}

//
//
// -------------------------------------------------------------------------
//
//

/// \name C++ Class Inline Methods
/// Implementations are in ParseCXXInlineMethods.cpp
///@{

public:

private:

//===--------------------------------------------------------------------===//
// Lexing and parsing of C++ inline methods.

struct ParsingClass;

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

public:

private:

/// Contextual keywords for Microsoft extensions.
Expand Down Expand Up @@ -4982,8 +4957,6 @@ class Parser : public CodeCompletionHandler {
/// Implementations are in ParseHLSL.cpp
///@{

public:

private:

bool MaybeParseHLSLAnnotations(Declarator &D,
Expand Down Expand Up @@ -5019,28 +4992,10 @@ class Parser : public CodeCompletionHandler {
//
//

/// \name HLSL Root Signature
/// Implementations are in ParseHLSLRootSignature.cpp
///@{

public:

private:

///@}

//
//
// -------------------------------------------------------------------------
//
//

/// \name Initializers
/// Implementations are in ParseInit.cpp
///@{

public:

private:

//===--------------------------------------------------------------------===//
Expand Down Expand Up @@ -6068,12 +6023,10 @@ class Parser : public CodeCompletionHandler {
/// Implementations are in ParseOpenMP.cpp
///@{

public:
private:

friend class ParsingOpenMPDirectiveRAII;

private:

/// Parsing OpenMP directive mode.
bool OpenMPDirectiveParsing = false;

Expand Down Expand Up @@ -6716,8 +6669,6 @@ class Parser : public CodeCompletionHandler {
/// Implementations are in ParsePragma.cpp
///@{

public:

private:

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

public:

private:

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