File: ClangIntroParser.h

package info (click to toggle)
aspectc%2B%2B 1%3A2.2%2Bgit20181008-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 18,704 kB
  • sloc: cpp: 110,629; ansic: 7,644; sh: 2,192; makefile: 1,317; pascal: 634; python: 402; xml: 349
file content (23 lines) | stat: -rw-r--r-- 653 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef __ClangIntroParser_h__
#define __ClangIntroParser_h__

#include "clang/Parse/Parser.h"

class ClangIntroParser : public clang::Parser {

public:

  ClangIntroParser(clang::Preprocessor &PP, clang::Sema &Actions,
      bool SkipFunctionBodies) :
    clang::Parser(PP, Actions, SkipFunctionBodies) {}

  // New parser function: Clang parses the whole class definition in one
  // function. For the introduction mechanism we need to parse a class body
  // separately.
  void ParseCXXClassBody(clang::Decl *TagDecl);

  // Hack: We make this parser method 'public'
  void ParseBaseClause(clang::Decl *TagDecl);
};

#endif // __ClangIntroParser_h__