fabic974 random (binary) wanderings in the philament empires…

LLVM/Clang playground

https://github.com/fabic/llvm-clang

  • 2017-02-11 …

2014-09-23: /me investigating how things happen so as to obtain an AST.

clang/include/clang/Sema/Sema.h

1546 2251 AddFunctionCandidates 2453 Name lookup

ParseDecl.cpp

1401 bool Parser::MightBeDeclarator(unsigned Context) {

2036 bool Parser::ParseImplicitInt(DeclSpec &DS, CXXScopeSpec *SS, const ParsedTemplateInfo &TemplateInfo, AccessSpecifier AS, DeclSpecContext DSC, ParsedAttributesWithRange &Attrs) {

clang/include/clang/Sema/Lookup.h : class LookupResult

clang/include/clang/AST/ASTContext.h

Sema.h Parser.h ParseDecl & ParceDeclCXX Tooling.cpp ExecuteCompilerInvocation ASTContext FrontendAction & FrontendActions ParseAST.cpp Parser.cpp Lookup.h

  • main() : clang/tools/driver/driver.cpp
  • [clang::driver::Driver][http://clang.llvm.org/doxygen/classclang_1_1driver_1_1Driver.html]
    • Compilation *BuildCompilation(ArrayRef<const char *> Args);
      • ^ clang::driver::Compilation is built with a new clang::driver::ToolChain