/development/vndk/tools/header-checker/header-abi-util/include/ |
D | header_abi_util.h | 22 std::set<std::string> CollectAllExportedHeaders( 23 const std::vector<std::string> &exported_header_dirs); 33 VersionScriptParser(const std::string &version_script, 34 const std::string &arch, 35 const std::string &api); 38 const std::set<std::string> &GetFunctions(); 40 const std::set<std::string> &GetGlobVars(); 42 const std::set<std::string> &GetFunctionRegexs(); 44 const std::set<std::string> &GetGlobVarRegexs(); 48 bool ParseInnerBlock(std::ifstream &symbol_ifstream); [all …]
|
/development/vndk/tools/header-checker/header-abi-util/src/ |
D | version_script_parser.cpp | 34 std::unordered_set<std::string> AllArches({"arm", "arm64", "x86", "x86_64", 37 static bool StringContains(const std::string &line, in StringContains() 38 const std::string &substring) { in StringContains() 39 return (line.find(substring) != std::string::npos); in StringContains() 42 static bool LineSatisfiesArch(const std::string &line, in LineSatisfiesArch() 43 const std::string arch) { in LineSatisfiesArch() 54 VersionScriptParser::VersionScriptParser(const std::string &version_script, in VersionScriptParser() 55 const std::string &arch, in VersionScriptParser() 56 const std::string &api) : in VersionScriptParser() 59 int VersionScriptParser::ApiStrToInt(const std::string &api) { in ApiStrToInt() [all …]
|
D | collect_exported_headers.cpp | 40 bool CollectExportedHeaderSet(const std::string &dir_name, in CollectExportedHeaderSet() 41 std::set<std::string> *exported_headers) { in CollectExportedHeaderSet() 42 std::error_code ec; in CollectExportedHeaderSet() 53 const std::string &file_path = walker->path(); in CollectExportedHeaderSet() 84 std::set<std::string> CollectAllExportedHeaders( in CollectAllExportedHeaders() 85 const std::vector<std::string> &exported_header_dirs) { in CollectAllExportedHeaders() 86 std::set<std::string> exported_headers; in CollectAllExportedHeaders()
|
/development/vndk/tools/header-checker/header-abi-diff/src/ |
D | abi_diff.h | 35 HeaderAbiDiff(const std::string &lib_name, const std::string &arch, in HeaderAbiDiff() 36 const std::string &old_dump, const std::string &new_dump, in HeaderAbiDiff() 37 const std::string &compatibility_report, in HeaderAbiDiff() 38 const std::set<std::string> &ignored_symbols) in HeaderAbiDiff() 56 const std::set<std::string> &ignored_symbols); 59 static inline void AddToMap(std::map<std::string, const T *> *dst, 65 const std::map<std::string, const T *> &old_elements_map, 66 const std::map<std::string, const T *> &new_elements_map, 67 const std::set<std::string> &ignored_symbols); 72 const std::map<std::string, const T *> &old_elements_map, [all …]
|
D | abi_diff.cpp | 33 std::ifstream old_input(old_dump_); in GenerateCompatibilityReport() 34 std::ifstream new_input(new_dump_); in GenerateCompatibilityReport() 49 std::unique_ptr<abi_diff::TranslationUnitDiff> diff_tu( in CompareTUs() 85 std::ofstream text_output(cr_); in CompareTUs() 102 const std::set<std::string> &ignored_symbols) { in Collect() 107 std::map<std::string, const T*> old_elements_map; in Collect() 108 std::map<std::string, const T*> new_elements_map; in Collect() 133 const std::map<std::string, const T*> &old_elements_map, in PopulateRemovedElements() 134 const std::map<std::string, const T*> &new_elements_map, in PopulateRemovedElements() 135 const std::set<std::string> &ignored_symbols) { in PopulateRemovedElements() [all …]
|
D | header_abi_diff.cpp | 24 static llvm::cl::opt<std::string> compatibility_report( 28 static llvm::cl::opt<std::string> lib_name( 32 static llvm::cl::opt<std::string> arch( 36 static llvm::cl::opt<std::string> new_dump( 40 static llvm::cl::opt<std::string> old_dump( 44 static llvm::cl::opt<std::string> ignore_symbol_list( 61 static std::set<std::string> LoadIgnoredSymbols(std::string &symbol_list_path) { in LoadIgnoredSymbols() 62 std::ifstream symbol_ifstream(symbol_list_path); in LoadIgnoredSymbols() 63 std::set<std::string> ignored_symbols; in LoadIgnoredSymbols() 68 std::string line = ""; in LoadIgnoredSymbols() [all …]
|
D | abi_diff_wrappers.h | 29 const std::set<std::string> &ignored_symbols) { in IgnoreSymbol() 37 virtual std::unique_ptr<TDiff> Get() = 0 ; 63 std::unique_ptr<TDiff> Get() override;
|
D | abi_diff_wrappers.cpp | 72 static std::string CpptoCAdjustment(const std::string &type) { in CpptoCAdjustment() 73 std::string adjusted_type_name = in CpptoCAdjustment() 82 std::string old_type = old_abi.name(); in CompareTypeNames() 83 std::string new_type = new_abi.name(); in CompareTypeNames() 241 std::unique_ptr<RecordDeclDiff> 243 std::unique_ptr<RecordDeclDiff> record_diff(new RecordDeclDiff()); in Get() 271 std::unique_ptr<EnumDeclDiff> 273 std::unique_ptr<EnumDeclDiff> enum_diff(new EnumDeclDiff()); in Get() 291 std::unique_ptr<FunctionDeclDiff> 293 std::unique_ptr<FunctionDeclDiff> func_diff(new FunctionDeclDiff()); in Get() [all …]
|
/development/vndk/tools/header-checker/header-abi-linker/src/ |
D | header_abi_linker.cpp | 40 static llvm::cl::list<std::string> dump_files( 44 static llvm::cl::opt<std::string> linked_dump( 48 static llvm::cl::list<std::string> exported_header_dirs( 52 static llvm::cl::opt<std::string> version_script( 56 static llvm::cl::opt<std::string> api( 60 static llvm::cl::opt<std::string> arch( 71 const std::vector<std::string> &dump_files, in HeaderAbiLinker() 72 const std::vector<std::string> &exported_header_dirs, in HeaderAbiLinker() 73 const std::string &version_script, in HeaderAbiLinker() 74 const std::string &linked_dump, in HeaderAbiLinker() [all …]
|
/development/vndk/tools/vtable-dumper/ |
D | elf_handling.h | 44 static std::unique_ptr<SharedObject> create(const ObjectFile *); 54 const std::string &, 55 const std::string &, 60 const std::string &getMangledName() const; 61 const std::string &getDemangledName() const; 63 std::string mMangledName; 64 std::string mDemangledName; 70 using func_iterator = std::vector<VFunction>::const_iterator; 72 const std::string &, 73 const std::string &, [all …]
|
D | elf_handling.cpp | 49 static std::string demangle(const std::string &MangledName) { in demangle() 56 std::string DemangledString(Str); in demangle() 66 static std::unique_ptr<SharedObject> createELFSharedObject( in createELFSharedObject() 71 static std::unique_ptr<SharedObject>createELFObjFile(const ObjectFile *Obj) { in createELFObjFile() 84 std::unique_ptr<SharedObject> SharedObject::create(const ObjectFile *Obj) { in create() 85 std::unique_ptr<SharedObject> res(createELFObjFile(Obj)); in create() 175 std::vector<std::pair<SymbolRef, uint64_t>> SymsAndSizes = in initVTableRanges() 177 for (std::pair<SymbolRef, uint64_t> &Pair : SymsAndSizes) { in initVTableRanges() 189 std::map<uint64_t, std::vector<SymbolRef>>::iterator It = in initVTableRanges() 192 mAddrToSymbolRef.insert(std::make_pair( in initVTableRanges() [all …]
|
/development/vndk/tools/header-checker/header-abi-dumper/src/ |
D | ast_processing.h | 40 const std::string ¤t_file_name, 41 const std::set<std::string> &exported_headers, 64 const std::string current_file_name_; 65 const std::set<std::string> &exported_headers_; 72 HeaderASTConsumer(const std::string &file_name, 74 const std::string &out_dump_name, 75 const std::set<std::string> &exported_headers); 80 std::string file_name_; 82 std::string out_dump_name_; 83 std::set<std::string> exported_headers_;
|
D | frontend_action.h | 33 std::string dump_name_; 34 const std::vector<std::string> &exported_header_dirs_; 38 const std::string &dump_name, 39 const std::vector<std::string> &export_header_dirs); 42 std::unique_ptr<clang::ASTConsumer> CreateASTConsumer(
|
D | frontend_action_factory.h | 25 std::string dump_name_; 26 const std::vector<std::string> &export_header_dirs_; 30 const std::string &dump_name, 31 const std::vector<std::string> &exported_header_dirs);
|
D | frontend_action.cpp | 28 const std::string &dump_name, const std::vector<std::string> &exports) in HeaderCheckerFrontendAction() 31 std::unique_ptr<clang::ASTConsumer> 34 std::set<std::string> exported_headers; in CreateASTConsumer()
|
D | ast_processing.cpp | 39 const std::string ¤t_file_name, in HeaderASTVisitor() 40 const std::set<std::string> &exported_headers, in HeaderASTVisitor() 57 std::unique_ptr<abi_dump::RecordDecl> wrapped_record_decl = in VisitRecordDecl() 77 std::unique_ptr<abi_dump::EnumDecl> wrapped_enum_decl = in VisitEnumDecl() 94 std::unique_ptr<abi_dump::FunctionDecl> wrapped_function_decl = in VisitFunctionDecl() 115 std::unique_ptr<abi_dump::GlobalVarDecl> wrapped_global_var_decl = in VisitVarDecl() 129 static bool AreHeadersExported(const std::set<std::string> &exported_headers) { in AreHeadersExported() 138 std::string source_file = ABIWrapper::GetDeclSourceFile(decl, cip_); in TraverseDecl() 148 const std::string &file_name, in HeaderASTConsumer() 150 const std::string &out_dump_name, in HeaderASTConsumer() [all …]
|
D | abi_wrappers.h | 37 static std::string GetDeclSourceFile(const clang::Decl *decl, 44 std::string GetMangledNameDecl(const clang::NamedDecl *decl) const; 52 std::string QualTypeToString(const clang::QualType &sweet_qt) const; 54 std::string GetTagDeclQualifiedName(const clang::TagDecl *decl) const; 61 const clang::QualType type, const std::string &name, 62 const clang::AccessSpecifier &access, std::string key) const; 77 std::unique_ptr<abi_dump::RecordDecl> GetRecordDecl() const; 84 const std::string &source_file) const; 110 std::unique_ptr<abi_dump::FunctionDecl> GetFunctionDecl() const; 117 const std::string &source_file) const; [all …]
|
D | header_checker.cpp | 34 static llvm::cl::opt<std::string> header_file( 38 static llvm::cl::opt<std::string> out_dump( 43 static llvm::cl::list<std::string> exported_header_dirs( 71 std::vector<const char *> fixedArgv(argv, argv + argc); in main() 76 std::unique_ptr<clang::tooling::CompilationDatabase> compilations( in main() 100 static_cast<std::vector<std::string> &>(exported_header_dirs).clear(); in main() 104 std::vector<std::string> header_files{ header_file }; in main() 107 std::unique_ptr<clang::tooling::FrontendActionFactory> factory( in main()
|
D | abi_wrappers.cpp | 35 std::string ABIWrapper::GetDeclSourceFile(const clang::Decl *decl, in GetDeclSourceFile() 47 std::string file_name_adjusted = ""; in GetDeclSourceFile() 87 std::pair<clang::CharUnits, clang::CharUnits> size_and_alignment = in SetupBasicTypeAbi() 99 const clang::QualType type, const std::string &name, in SetupBasicNamedAndTypedDecl() 100 const clang::AccessSpecifier &access, std::string key) const { in SetupBasicNamedAndTypedDecl() 114 std::string ABIWrapper::GetMangledNameDecl(const clang::NamedDecl *decl) const { in GetMangledNameDecl() 120 std::string mangled_name; in GetMangledNameDecl() 146 std::string name = (*template_it)->getName(); in SetupTemplateParamNames() 155 std::string ABIWrapper::GetTagDeclQualifiedName( in GetTagDeclQualifiedName() 189 std::string ABIWrapper::QualTypeToString( in QualTypeToString() [all …]
|
D | frontend_action_factory.cpp | 22 const std::string &dump_name, in HeaderCheckerFrontendActionFactory() 23 const std::vector<std::string> &export_header_dirs) in HeaderCheckerFrontendActionFactory()
|
/development/ndk/platforms/android-21/include/ |
D | stdatomic.h | 62 #define _Atomic(t) std::atomic<t> 64 using std::atomic_is_lock_free; 65 using std::atomic_init; 66 using std::atomic_store; 67 using std::atomic_store_explicit; 68 using std::atomic_load; 69 using std::atomic_load_explicit; 70 using std::atomic_exchange; 71 using std::atomic_exchange_explicit; 72 using std::atomic_compare_exchange_strong; [all …]
|
/development/host/windows/usb/api/ |
D | adb_api_instance.h | 71 const std::wstring& interface_name() const { in interface_name() 101 std::wstring interface_name_; 111 typedef std::map< ADBAPIINSTANCEHANDLE, AdbApiInstance* > AdbApiInstanceMap;
|
D | adb_api_private_defines.h | 86 const std::wstring& device_name() const { in device_name() 105 std::wstring device_name_; 112 typedef std::vector< AdbInstanceEnumEntry > AdbEnumInterfaceArray;
|
/development/vndk/tools/header-checker/merge-abi-diff/src/ |
D | merge_abi_diff.cpp | 41 static llvm::cl::list<std::string> diff_report_list( 45 static llvm::cl::opt<std::string> merged_diff_report( 81 const std::vector<std::string> &diff_reports, in MergeDiffReports() 82 const std::string &merged_diff_report) { in MergeDiffReports() 85 std::ofstream text_output(merged_diff_report); in MergeDiffReports() 91 std::ifstream input(i); in MergeDiffReports() 126 std::string status_str = ""; in main()
|
/development/vndk/tools/header-checker/tests/input/ |
D | example2.h | 16 static constexpr bool __matches[] = {std::is_same<_T1, _T2>::value}; 21 std::vector<HelloAgain *> foo_again; 77 std::vector<int *> Dummy(int t);
|