Implement a FIXME, we now pass in the locations of the braces for enums.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71930 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/clang-cc/PrintParserCallbacks.cpp b/tools/clang-cc/PrintParserCallbacks.cpp
index 55d0d7f..ceb0500 100644
--- a/tools/clang-cc/PrintParserCallbacks.cpp
+++ b/tools/clang-cc/PrintParserCallbacks.cpp
@@ -181,9 +181,9 @@
return DeclPtrTy();
}
- //===--------------------------------------------------------------------===//
+ //===------------------------------------------------------------------===//
// Type Parsing Callbacks.
- //===--------------------------------------------------------------------===//
+ //===------------------------------------------------------------------===//
virtual TypeResult ActOnTypeName(Scope *S, Declarator &D) {
llvm::cout << __FUNCTION__ << "\n";
@@ -237,14 +237,15 @@
return DeclPtrTy();
}
- virtual void ActOnEnumBody(SourceLocation EnumLoc, DeclPtrTy EnumDecl,
+ virtual void ActOnEnumBody(SourceLocation EnumLoc, SourceLocation LBraceLoc,
+ SourceLocation RBraceLoc, DeclPtrTy EnumDecl,
DeclPtrTy *Elements, unsigned NumElements) {
llvm::cout << __FUNCTION__ << "\n";
}
- //===--------------------------------------------------------------------===//
+ //===------------------------------------------------------------------===//
// Statement Parsing Callbacks.
- //===--------------------------------------------------------------------===//
+ //===------------------------------------------------------------------===//
virtual OwningStmtResult ActOnNullStmt(SourceLocation SemiLoc) {
llvm::cout << __FUNCTION__ << "\n";
@@ -368,7 +369,7 @@
return StmtEmpty();
}
virtual OwningStmtResult ActOnAsmStmt(SourceLocation AsmLoc,
- bool IsSimple,
+ bool IsSimple,
bool IsVolatile,
unsigned NumOutputs,
unsigned NumInputs,
@@ -438,9 +439,9 @@
return StmtEmpty();
}
- //===--------------------------------------------------------------------===//
+ //===------------------------------------------------------------------===//
// Expression Parsing Callbacks.
- //===--------------------------------------------------------------------===//
+ //===------------------------------------------------------------------===//
// Primary Expressions.