clang: include/clang/AST/PrettyDeclStackTrace.h Source File (original) (raw)
Go to the documentation of this file.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15#ifndef LLVM_CLANG_AST_PRETTYDECLSTACKTRACE_H
16#define LLVM_CLANG_AST_PRETTYDECLSTACKTRACE_H
17
19#include "llvm/Support/PrettyStackTrace.h"
20
22
23class ASTContext;
25
26
27
28
31 Decl *TheDecl;
33 const char *Message;
34
35public:
37 const char *Msg)
38 : Context(Ctx), TheDecl(D), Loc(Loc), Message(Msg) {}
39
40 void print(raw_ostream &OS) const override;
41};
42
43}
44
45#endif
Defines the clang::SourceLocation class and associated facilities.
Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...
Decl - This represents one declaration (or definition), e.g.
PrettyDeclStackTraceEntry - If a crash occurs in the parser while parsing something related to a decl...
PrettyDeclStackTraceEntry(ASTContext &Ctx, Decl *D, SourceLocation Loc, const char *Msg)
void print(raw_ostream &OS) const override
Encodes a location in the source.
@ Decl
The l-value was an access to a declared entity or something equivalently strong, like the address of ...
The JSON file list parser is used to communicate input to InstallAPI.