Home
last modified time | relevance | path

Searched refs:HeaderType (Results 1 – 19 of 19) sorted by relevance

/llvm-project/clang/include/clang/InstallAPI/
H A DHeaderFile.h26 enum class HeaderType { enum
38 inline StringRef getName(const HeaderType T) { in getName()
40 case HeaderType::Public: in getName()
42 case HeaderType::Private: in getName()
44 case HeaderType::Project: in getName()
46 case HeaderType::Unknown: in getName()
56 HeaderType Type;
70 HeaderFile(StringRef FullPath, HeaderType Type,
78 HeaderType getType() const { return Type; } in getType()
90 return Type != HeaderType::Project && !IncludeName.empty(); in useIncludeName()
[all …]
H A DContext.h41 HeaderType Type = HeaderType::Unknown;
72 std::optional<HeaderType> findAndRecordFile(const FileEntry *FE,
76 using HeaderMap = llvm::DenseMap<const FileEntry *, HeaderType>;
83 llvm::DenseMap<StringRef, HeaderType> KnownIncludes;
H A DFrontendRecords.h25 const HeaderType Access;
52 const HeaderType Access, SymbolFlags Flags = SymbolFlags::None,
69 HeaderType Access, bool IsEHType);
85 HeaderType Access);
102 const Decl *D, HeaderType Access,
H A DVisitor.h69 std::optional<HeaderType> getAccessForDecl(const NamedDecl *D) const;
77 const HeaderType Access, bool EmittedVTable = false);
H A DLibrary.h42 void addHeaderFile(StringRef FullPath, HeaderType Type,
H A DDirectoryScanner.h66 llvm::Error scanHeaders(StringRef Path, Library &Lib, HeaderType Type,
/llvm-project/clang/unittests/InstallAPI/
H A DFileListTest.cpp53 {"/tmp/dst/usr/include/foo.h", HeaderType::Public, "foo.h", in TEST()
55 {"/tmp/dst/usr/local/include/bar.h", HeaderType::Private, "bar.h", in TEST()
57 {"/tmp/src/baz.h", HeaderType::Project, "", std::nullopt}}; in TEST()
78 {"/usr/include/foo.h", HeaderType::Public, "foo.h", std::nullopt}, in TEST()
79 {"/usr/local/include/bar.h", HeaderType::Private, "bar.h", std::nullopt}, in TEST()
100 {"/usr/include/foo.h", HeaderType::Public, "foo.h", std::nullopt}, in TEST()
101 {"src/bar.h", HeaderType::Project, "", std::nullopt}, in TEST()
/llvm-project/clang/lib/InstallAPI/
H A DFrontend.cpp21 const clang::AvailabilityInfo Avail, const Decl *D, const HeaderType Access, in addGlobal()
34 const Decl *D, HeaderType Access, in addObjCInterface()
52 const Decl *D, HeaderType Access) { in addObjCCategory()
62 const clang::AvailabilityInfo Avail, const Decl *D, HeaderType Access, in addObjCIVar()
77 std::optional<HeaderType>
87 if (It->second != HeaderType::Unknown) in findAndRecordFile()
105 KnownFiles.insert({FE, HeaderType::Unknown}); in findAndRecordFile()
137 assert(Ctx.Type != HeaderType::Unknown && in createInputBuffer()
H A DFileList.cpp48 Expected<HeaderType> parseType(const Object *Obj);
69 Expected<HeaderType> Implementation::parseType(const Object *Obj) { in parseType()
76 return HeaderType::Public; in parseType()
78 return HeaderType::Private; in parseType()
80 return HeaderType::Project; in parseType()
123 if (*Type == HeaderType::Project) { in parseHeaders()
H A DDirectoryScanner.cpp54 if (Error Err = scanHeaders(DirPublic->getName(), Lib, HeaderType::Public, in scanForUnwrappedLibraries()
59 if (Error Err = scanHeaders(DirPrivate->getName(), Lib, HeaderType::Private, in scanForUnwrappedLibraries()
91 HeaderType Type, StringRef BasePath, in scanHeaders()
247 if (Error Err = scanHeaders(Curr, Framework, HeaderType::Public, Curr)) in scanFrameworkDirectory()
253 if (Error Err = scanHeaders(Curr, Framework, HeaderType::Private, Curr)) in scanFrameworkDirectory()
H A DHeaderFile.cpp66 HeaderGlob::HeaderGlob(StringRef GlobString, Regex &&Rule, HeaderType Type) in HeaderGlob()
80 HeaderType Type) { in create()
H A DVisitor.cpp103 std::optional<HeaderType>
124 HeaderType Access = Header.value(); in getAccessForDecl()
125 assert(Access != HeaderType::Unknown && "unexpected access level for global"); in getAccessForDecl()
481 const HeaderType Access, in emitVTableSymbols()
/llvm-project/clang/tools/clang-installapi/
H A DOptions.cpp924 auto HandleExtraHeaders = [&](PathSeq &Headers, HeaderType Type) -> bool { in createContext()
925 assert(Type != HeaderType::Unknown && "Missing header type."); in createContext()
942 if (!HandleExtraHeaders(DriverOpts.ExtraPublicHeaders, HeaderType::Public) || in createContext()
944 HeaderType::Private) || in createContext()
945 !HandleExtraHeaders(DriverOpts.ExtraProjectHeaders, HeaderType::Project)) in createContext()
951 auto ParseGlobs = [&](const PathSeq &Paths, HeaderType Type) { in createContext()
952 assert(Type != HeaderType::Unknown && "Missing header type."); in createContext()
971 if (!ParseGlobs(DriverOpts.ExcludePublicHeaders, HeaderType::Public) || in createContext()
972 !ParseGlobs(DriverOpts.ExcludePrivateHeaders, HeaderType::Private) || in createContext()
973 !ParseGlobs(DriverOpts.ExcludeProjectHeaders, HeaderType in createContext()
[all...]
H A DClangInstallAPI.cpp127 for (const HeaderType Type : in run()
128 {HeaderType::Public, HeaderType::Private, HeaderType::Project}) { in run()
H A DOptions.h192 const llvm::Triple &Targ, const HeaderType Type);
/llvm-project/llvm/lib/Object/
H A DMachOUniversalWriter.cpp333 FatHeaderType HeaderType) { in writeUniversalBinaryToStream() argument
337 switch (HeaderType) { in writeUniversalBinaryToStream()
354 FatHeaderType HeaderType) { in writeUniversalBinary() argument
366 if (Error E = writeUniversalBinaryToStream(Slices, Out, HeaderType)) { in writeUniversalBinary()
/llvm-project/clang/lib/Frontend/
H A DHeaderIncludeGen.cpp57 bool ShouldShowHeader(SrcMgr::CharacteristicKind HeaderType) { in ShouldShowHeader() argument
58 if (!DepOpts.IncludeSystemHeaders && isSystem(HeaderType)) in ShouldShowHeader()
/llvm-project/llvm/tools/llvm-lipo/
H A Dllvm-lipo.cpp608 StringRef OutputFileName, FatHeaderType HeaderType) { in createUniversalBinary()
619 if (Error E = writeUniversalBinary(Slices, OutputFileName, HeaderType)) in createUniversalBinary()
605 createUniversalBinary(LLVMContext & LLVMCtx,ArrayRef<OwningBinary<Binary>> InputBinaries,const StringMap<const uint32_t> & Alignments,StringRef OutputFileName,FatHeaderType HeaderType) createUniversalBinary() argument
/llvm-project/clang/lib/Driver/
H A DDriver.cpp4296 const types::ID HeaderType = lookupHeaderTypeForSourceType(InputType); in BuildActions()
4298 Action *ClangClPch = C.MakeAction<InputAction>(*InputArg, HeaderType); in BuildActions()
4299 for (phases::ID Phase : types::getCompilationPhases(HeaderType)) in BuildActions()
4076 const types::ID HeaderType = lookupHeaderTypeForSourceType(InputType); handleArguments() local