clang
9.0.0
|
Defines a combinator library supporting the definition of selectors, which select source ranges based on (bound) AST nodes. More...
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/Basic/SourceLocation.h"
#include "llvm/Support/Error.h"
#include <functional>
#include <string>
Go to the source code of this file.
Namespaces | |
clang | |
Dataflow Directional Tag Classes. | |
clang::tooling | |
Typedefs | |
using | clang::tooling::RangeSelector = std::function< Expected< CharSourceRange >(const ast_matchers::MatchFinder::MatchResult &)> |
Functions | |
RangeSelector | clang::tooling::charRange (CharSourceRange R) |
RangeSelector | clang::tooling::range (RangeSelector Begin, RangeSelector End) |
Selects from the start of Begin and to the end of End . More... | |
RangeSelector | clang::tooling::range (std::string BeginID, std::string EndID) |
Convenience version of range where end-points are bound nodes. More... | |
RangeSelector | clang::tooling::before (RangeSelector Selector) |
Selects the (empty) range [B,B) when Selector selects the range [B,E). More... | |
RangeSelector | clang::tooling::after (RangeSelector Selector) |
Selects the the point immediately following Selector . More... | |
RangeSelector | clang::tooling::node (std::string ID) |
Selects a node, including trailing semicolon (for non-expression statements). More... | |
RangeSelector | clang::tooling::statement (std::string ID) |
Selects a node, including trailing semicolon (always). More... | |
RangeSelector | clang::tooling::member (std::string ID) |
Given a MemberExpr , selects the member token. More... | |
RangeSelector | clang::tooling::name (std::string ID) |
Given a node with a "name", (like NamedDecl , DeclRefExpr or CxxCtorInitializer ) selects the name's token. More... | |
RangeSelector | clang::tooling::callArgs (std::string ID) |
RangeSelector | clang::tooling::statements (std::string ID) |
RangeSelector | clang::tooling::initListElements (std::string ID) |
RangeSelector | clang::tooling::expansion (RangeSelector S) |
Selects the range from which S was expanded (possibly along with other source), if S is an expansion, and S itself, otherwise. More... | |
Defines a combinator library supporting the definition of selectors, which select source ranges based on (bound) AST nodes.
Definition in file RangeSelector.h.