Home
last modified time | relevance | path

Searched refs:cxstring (Results 1 – 14 of 14) sorted by relevance

/external/clang/tools/libclang/
DCIndexUSRs.cpp47 return cxstring::createEmpty(); in clang_getCursorUSR()
51 return cxstring::createEmpty(); in clang_getCursorUSR()
53 cxstring::CXStringBuf *buf = cxstring::getCXStringBuf(TU); in clang_getCursorUSR()
55 return cxstring::createEmpty(); in clang_getCursorUSR()
60 return cxstring::createEmpty(); in clang_getCursorUSR()
72 return cxstring::createEmpty(); in clang_getCursorUSR()
74 cxstring::CXStringBuf *buf = cxstring::getCXStringBuf(TU); in clang_getCursorUSR()
76 return cxstring::createEmpty(); in clang_getCursorUSR()
83 return cxstring::createEmpty(); in clang_getCursorUSR()
92 return cxstring::createEmpty(); in clang_getCursorUSR()
[all …]
DCXComment.cpp134 return cxstring::createNull(); in clang_TextComment_getText()
136 return cxstring::createRef(TC->getText()); in clang_TextComment_getText()
142 return cxstring::createNull(); in clang_InlineCommandComment_getCommandName()
145 return cxstring::createRef(ICC->getCommandName(Traits)); in clang_InlineCommandComment_getCommandName()
182 return cxstring::createNull(); in clang_InlineCommandComment_getArgText()
184 return cxstring::createRef(ICC->getArgText(ArgIdx)); in clang_InlineCommandComment_getArgText()
190 return cxstring::createNull(); in clang_HTMLTagComment_getTagName()
192 return cxstring::createRef(HTC->getTagName()); in clang_HTMLTagComment_getTagName()
214 return cxstring::createNull(); in clang_HTMLStartTag_getAttrName()
216 return cxstring::createRef(HST->getAttr(AttrIdx).Name); in clang_HTMLStartTag_getAttrName()
[all …]
DCXCompilationDatabase.cpp108 return cxstring::createNull(); in clang_CompileCommand_getDirectory()
111 return cxstring::createRef(cmd->Directory.c_str()); in clang_CompileCommand_getDirectory()
118 return cxstring::createNull(); in clang_CompileCommand_getFilename()
121 return cxstring::createRef(cmd->Filename.c_str()); in clang_CompileCommand_getFilename()
137 return cxstring::createNull(); in clang_CompileCommand_getArg()
142 return cxstring::createNull(); in clang_CompileCommand_getArg()
144 return cxstring::createRef(Cmd->CommandLine[Arg].c_str()); in clang_CompileCommand_getArg()
160 return cxstring::createNull(); in clang_CompileCommand_getMappedSourcePath()
165 return cxstring::createNull(); in clang_CompileCommand_getMappedSourcePath()
167 return cxstring::createRef(Cmd->MappedSources[I].first.c_str()); in clang_CompileCommand_getMappedSourcePath()
[all …]
DCXStoredDiagnostic.cpp53 return cxstring::createRef(Diag.getMessage()); in getSpelling()
61 *Disable = cxstring::createDup((Twine("-Wno-") + Option).str()); in getDiagnosticOption()
62 return cxstring::createDup((Twine("-W") + Option).str()); in getDiagnosticOption()
67 *Disable = cxstring::createRef("-ferror-limit=0"); in getDiagnosticOption()
68 return cxstring::createRef("-ferror-limit="); in getDiagnosticOption()
71 return cxstring::createEmpty(); in getDiagnosticOption()
80 return cxstring::createRef(DiagnosticIDs::getCategoryNameFromID(catID)); in getCategoryText()
113 return cxstring::createDup(Hint.CodeToInsert); in getFixIt()
DCIndex.cpp78 D->StringPool = new cxstring::CXStringPool(); in MakeCXTranslationUnit()
3397 return cxstring::createDup(encoding); in clang_Type_getObjCEncoding()
3864 return cxstring::createEmpty(); in clang_getTranslationUnitSpelling()
3868 return cxstring::createDup(CXXUnit->getOriginalSourceFileName()); in clang_getTranslationUnitSpelling()
3890 return cxstring::createNull(); in clang_getFileName()
3893 return cxstring::createRef(FEnt->getName()); in clang_getFileName()
4082 return cxstring::createEmpty(); in getDeclSpelling()
4089 return cxstring::createDup(Property->getIdentifier()->getName()); in getDeclSpelling()
4093 return cxstring::createDup(Mod->getFullModuleName()); in getDeclSpelling()
4095 return cxstring::createEmpty(); in getDeclSpelling()
[all …]
DCIndexDiagnostic.cpp62 return cxstring::createRef(Message.c_str()); in getSpelling()
67 *Disable = cxstring::createEmpty(); in getDiagnosticOption()
68 return cxstring::createEmpty(); in getDiagnosticOption()
72 CXString getCategoryText() const override { return cxstring::createEmpty(); } in getCategoryText()
83 return cxstring::createEmpty(); in getFixIt()
256 return cxstring::createEmpty(); in clang_formatDiagnostic()
371 return cxstring::createDup(Out.str()); in clang_formatDiagnostic()
394 return cxstring::createEmpty(); in clang_getDiagnosticSpelling()
399 *Disable = cxstring::createEmpty(); in clang_getDiagnosticOption()
404 return cxstring::createEmpty(); in clang_getDiagnosticOption()
[all …]
DCXLoadedDiagnostic.cpp109 return cxstring::createRef(Spelling); in getSpelling()
114 return cxstring::createEmpty(); in getDiagnosticOption()
118 *Disable = cxstring::createDup((Twine("-Wno-") + DiagOption).str()); in getDiagnosticOption()
119 return cxstring::createDup((Twine("-W") + DiagOption).str()); in getDiagnosticOption()
127 return cxstring::createDup(CategoryText); in getCategoryText()
148 return cxstring::createRef(FixIts[FixIt].second); in getFixIt()
200 *errorString = cxstring::createDup(err); in reportBad()
245 *errorString = cxstring::createEmpty(); in DiagLoader()
DCIndexCodeCompletion.cpp117 return cxstring::createNull(); in clang_getCompletionChunkText()
140 return cxstring::createRef((*CCStr)[chunk_number].Text); in clang_getCompletionChunkText()
144 return cxstring::createEmpty(); in clang_getCompletionChunkText()
215 return CCStr ? cxstring::createRef(CCStr->getAnnotation(annotation_number)) in clang_getCompletionAnnotation()
216 : cxstring::createNull(); in clang_getCompletionAnnotation()
227 return cxstring::createNull(); in clang_getCompletionParent()
229 return cxstring::createRef(CCStr->getParentContextName()); in clang_getCompletionParent()
237 return cxstring::createNull(); in clang_getCompletionBriefComment()
239 return cxstring::createRef(CCStr->getBriefComment()); in clang_getCompletionBriefComment()
904 return cxstring::createEmpty(); in clang_codeCompleteGetContainerUSR()
[all …]
DCXString.cpp39 namespace cxstring { namespace
168 return static_cast<const cxstring::CXStringBuf *>(string.data)->Data.data(); in clang_getCString()
182 static_cast<cxstring::CXStringBuf *>( in clang_disposeString()
DARCMigrate.cpp131 *original = cxstring::createDup( in clang_remap_getFilenames()
134 *transformed = cxstring::createDup( in clang_remap_getFilenames()
DCXType.cpp226 return cxstring::createEmpty(); in clang_getTypeSpelling()
235 return cxstring::createDup(OS.str()); in clang_getTypeSpelling()
500 return cxstring::createRef(s); in clang_getTypeKindSpelling()
897 return cxstring::createEmpty(); in clang_getDeclObjCTypeEncoding()
905 return cxstring::createRef("?"); in clang_getDeclObjCTypeEncoding()
916 else return cxstring::createRef("?"); in clang_getDeclObjCTypeEncoding()
920 return cxstring::createDup(encoding); in clang_getDeclObjCTypeEncoding()
DCXTranslationUnit.h32 clang::cxstring::CXStringPool *StringPool;
DCXString.h26 namespace cxstring {
DCXSourceLocation.cpp198 *filename = cxstring::createEmpty(); in createNullLocation()
298 if (filename) *filename = cxstring::createRef(PreLoc.getFilename()); in clang_getPresumedLocation()