clang 19.0.0git
Functions
ASTSrcLocProcessor.cpp File Reference
#include "ASTSrcLocProcessor.h"
#include "clang/Frontend/CompilerInstance.h"
#include "llvm/Support/JSON.h"
#include "llvm/Support/MemoryBuffer.h"

Go to the source code of this file.

Functions

llvm::json::Object toJSON (llvm::StringMap< std::vector< StringRef > > const &Obj)
 
llvm::json::Object toJSON (llvm::StringMap< std::string > const &Obj)
 
llvm::json::Object toJSON (ClassData const &Obj)
 
llvm::json::Object toJSON (llvm::StringMap< ClassData > const &Obj)
 
void WriteJSON (StringRef JsonPath, llvm::json::Object &&ClassInheritance, llvm::json::Object &&ClassesInClade, llvm::json::Object &&ClassEntries)
 
std::vector< std::string > CaptureMethods (std::string TypeString, const clang::CXXRecordDecl *ASTClass, const MatchFinder::MatchResult &Result)
 

Function Documentation

◆ CaptureMethods()

std::vector< std::string > CaptureMethods ( std::string  TypeString,
const clang::CXXRecordDecl ASTClass,
const MatchFinder::MatchResult Result 
)

◆ toJSON() [1/4]

llvm::json::Object toJSON ( ClassData const &  Obj)

◆ toJSON() [2/4]

llvm::json::Object toJSON ( llvm::StringMap< ClassData > const &  Obj)

Definition at line 92 of file ASTSrcLocProcessor.cpp.

References toJSON().

◆ toJSON() [3/4]

llvm::json::Object toJSON ( llvm::StringMap< std::string > const &  Obj)

Definition at line 62 of file ASTSrcLocProcessor.cpp.

◆ toJSON() [4/4]

llvm::json::Object toJSON ( llvm::StringMap< std::vector< StringRef > > const &  Obj)

Definition at line 52 of file ASTSrcLocProcessor.cpp.

Referenced by clang::tooling::ASTSrcLocProcessor::generate(), and toJSON().

◆ WriteJSON()

void WriteJSON ( StringRef  JsonPath,
llvm::json::Object &&  ClassInheritance,
llvm::json::Object &&  ClassesInClade,
llvm::json::Object &&  ClassEntries 
)