#include "clang/Tooling/Syntax/BuildTree.h"
#include "clang/AST/ASTFwd.h"
#include "clang/AST/Decl.h"
#include "clang/AST/DeclBase.h"
#include "clang/AST/DeclCXX.h"
#include "clang/AST/DeclarationName.h"
#include "clang/AST/Expr.h"
#include "clang/AST/ExprCXX.h"
#include "clang/AST/IgnoreExpr.h"
#include "clang/AST/OperationKinds.h"
#include "clang/AST/RecursiveASTVisitor.h"
#include "clang/AST/Stmt.h"
#include "clang/AST/TypeLoc.h"
#include "clang/AST/TypeLocVisitor.h"
#include "clang/Basic/LLVM.h"
#include "clang/Basic/SourceLocation.h"
#include "clang/Basic/SourceManager.h"
#include "clang/Basic/Specifiers.h"
#include "clang/Basic/TokenKinds.h"
#include "clang/Lex/Lexer.h"
#include "clang/Lex/LiteralSupport.h"
#include "clang/Tooling/Syntax/Nodes.h"
#include "clang/Tooling/Syntax/TokenBufferTokenManager.h"
#include "clang/Tooling/Syntax/Tokens.h"
#include "clang/Tooling/Syntax/Tree.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/PointerUnion.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/ScopeExit.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/Support/Allocator.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/FormatVariadic.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/raw_ostream.h"
#include <cstddef>
#include <map>
Go to the source code of this file.
◆ dropDefaultArgs() ◆ getDeclaratorRange()Gets the range of declarator as defined by the C++ grammar.
E.g. int a;
-> range of a
, int *a;
-> range of *a
, int a[10];
-> range of a[10]
, int a[1][2][3];
-> range of a[1][2][3]
, int *a = nullptr
-> range of *a = nullptr
. int S::f(){}
-> range of S::f()
. FIXME: Name
must be a source range.
Definition at line 292 of file BuildTree.cpp.
References clang::Initializer, clang::SourceLocation::isInvalid(), SM, and clang::T.
◆ getInitializerRange()Gets the range of the initializer inside an init-declarator C++ [dcl.decl].
int a;
-> range of `,
int *a = nullptr-> range of
= nullptr.
int a{}-> range of
{}.
int a()-> range of
()`.
Definition at line 273 of file BuildTree.cpp.
◆ getOperatorNodeKind() ◆ getQualifiedNameStart()Get the start of the qualified name.
In the examples below it gives the location of the ^
: int ^a;
int *^a;
int ^a::S::f(){}
Definition at line 250 of file BuildTree.cpp.
References D, and clang::Decl::getLocation().
◆ IgnoreCXXFunctionalCastExprWrappingConstructor() static Expr * IgnoreCXXFunctionalCastExprWrappingConstructor ( Expr * E ) static ◆ IgnoreImplicit() static Expr * IgnoreImplicit ( Expr * E ) static ◆ IgnoreImplicitConstructorSingleStep() static Expr * IgnoreImplicitConstructorSingleStep ( Expr * E ) static ◆ isImplicitExpr() static LLVM_ATTRIBUTE_UNUSED bool isImplicitExpr ( Expr * E ) staticRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4