Home
last modified time | relevance | path

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

/external/clang/tools/libclang/
DCXStoredDiagnostic.cpp51 return cxstring::createRef(Diag.getMessage()); in getSpelling()
59 *Disable = cxstring::createDup((Twine("-Wno-") + Option).str()); in getDiagnosticOption()
60 return cxstring::createDup((Twine("-W") + Option).str()); in getDiagnosticOption()
65 *Disable = cxstring::createRef("-ferror-limit=0"); in getDiagnosticOption()
66 return cxstring::createRef("-ferror-limit="); in getDiagnosticOption()
69 return cxstring::createEmpty(); in getDiagnosticOption()
78 return cxstring::createRef(DiagnosticIDs::getCategoryNameFromID(catID)); in getCategoryText()
111 return cxstring::createDup(Hint.CodeToInsert); in getFixIt()
DCIndex.cpp68 D->StringPool = new cxstring::CXStringPool(); in MakeCXTranslationUnit()
2922 return cxstring::createEmpty(); in clang_getTranslationUnitSpelling()
2925 return cxstring::createDup(CXXUnit->getOriginalSourceFileName()); in clang_getTranslationUnitSpelling()
2942 return cxstring::createNull(); in clang_getFileName()
2945 return cxstring::createRef(FEnt->getName()); in clang_getFileName()
3114 return cxstring::createEmpty(); in getDeclSpelling()
3121 return cxstring::createDup(Property->getIdentifier()->getName()); in getDeclSpelling()
3125 return cxstring::createDup(Mod->getFullModuleName()); in getDeclSpelling()
3127 return cxstring::createEmpty(); in getDeclSpelling()
3131 return cxstring::createDup(OMD->getSelector().getAsString()); in getDeclSpelling()
[all …]
DCIndexDiagnostic.cpp64 return cxstring::createRef(Message.c_str()); in getSpelling()
69 *Disable = cxstring::createEmpty(); in getDiagnosticOption()
70 return cxstring::createEmpty(); in getDiagnosticOption()
74 CXString getCategoryText() const { return cxstring::createEmpty(); } in getCategoryText()
82 return cxstring::createEmpty(); in getFixIt()
241 return cxstring::createEmpty(); in clang_formatDiagnostic()
356 return cxstring::createDup(Out.str()); in clang_formatDiagnostic()
379 return cxstring::createEmpty(); in clang_getDiagnosticSpelling()
384 *Disable = cxstring::createEmpty(); in clang_getDiagnosticOption()
389 return cxstring::createEmpty(); in clang_getDiagnosticOption()
[all …]
DCXCompilationDatabase.cpp109 return cxstring::createNull(); in clang_CompileCommand_getDirectory()
112 return cxstring::createRef(cmd->Directory.c_str()); in clang_CompileCommand_getDirectory()
128 return cxstring::createNull(); in clang_CompileCommand_getArg()
133 return cxstring::createNull(); in clang_CompileCommand_getArg()
135 return cxstring::createRef(Cmd->CommandLine[Arg].c_str()); in clang_CompileCommand_getArg()
DCXComment.cpp126 return cxstring::createNull(); in clang_TextComment_getText()
128 return cxstring::createRef(TC->getText()); in clang_TextComment_getText()
134 return cxstring::createNull(); in clang_InlineCommandComment_getCommandName()
137 return cxstring::createRef(ICC->getCommandName(Traits)); in clang_InlineCommandComment_getCommandName()
174 return cxstring::createNull(); in clang_InlineCommandComment_getArgText()
176 return cxstring::createRef(ICC->getArgText(ArgIdx)); in clang_InlineCommandComment_getArgText()
182 return cxstring::createNull(); in clang_HTMLTagComment_getTagName()
184 return cxstring::createRef(HTC->getTagName()); in clang_HTMLTagComment_getTagName()
206 return cxstring::createNull(); in clang_HTMLStartTag_getAttrName()
208 return cxstring::createRef(HST->getAttr(AttrIdx).Name); in clang_HTMLStartTag_getAttrName()
[all …]
DCIndexUSRs.cpp829 return cxstring::createEmpty(); in clang_getCursorUSR()
833 return cxstring::createEmpty(); in clang_getCursorUSR()
835 cxstring::CXStringBuf *buf = cxstring::getCXStringBuf(TU); in clang_getCursorUSR()
837 return cxstring::createEmpty(); in clang_getCursorUSR()
842 return cxstring::createEmpty(); in clang_getCursorUSR()
854 return cxstring::createEmpty(); in clang_getCursorUSR()
856 cxstring::CXStringBuf *buf = cxstring::getCXStringBuf(TU); in clang_getCursorUSR()
858 return cxstring::createEmpty(); in clang_getCursorUSR()
870 return cxstring::createEmpty(); in clang_getCursorUSR()
877 return cxstring::createDup(UG.str()); in clang_constructUSR_ObjCIvar()
[all …]
DCIndexCodeCompletion.cpp115 return cxstring::createNull(); in clang_getCompletionChunkText()
138 return cxstring::createRef((*CCStr)[chunk_number].Text); in clang_getCompletionChunkText()
142 return cxstring::createEmpty(); in clang_getCompletionChunkText()
213 return CCStr ? cxstring::createRef(CCStr->getAnnotation(annotation_number)) in clang_getCompletionAnnotation()
214 : cxstring::createNull(); in clang_getCompletionAnnotation()
225 return cxstring::createNull(); in clang_getCompletionParent()
227 return cxstring::createRef(CCStr->getParentContextName()); in clang_getCompletionParent()
235 return cxstring::createNull(); in clang_getCompletionBriefComment()
237 return cxstring::createRef(CCStr->getBriefComment()); in clang_getCompletionBriefComment()
908 return cxstring::createEmpty(); in clang_codeCompleteGetContainerUSR()
[all …]
DCXString.cpp39 namespace cxstring { namespace
155 return static_cast<const cxstring::CXStringBuf *>(string.data)->Data.data(); in clang_getCString()
169 static_cast<cxstring::CXStringBuf *>( in clang_disposeString()
DCXLoadedDiagnostic.cpp98 return cxstring::createRef(Spelling); in getSpelling()
103 return cxstring::createEmpty(); in getDiagnosticOption()
107 *Disable = cxstring::createDup((Twine("-Wno-") + DiagOption).str()); in getDiagnosticOption()
108 return cxstring::createDup((Twine("-W") + DiagOption).str()); in getDiagnosticOption()
116 return cxstring::createDup(CategoryText); in getCategoryText()
137 return cxstring::createRef(FixIts[FixIt].second); in getFixIt()
196 *errorString = cxstring::createDup(err); in reportBad()
242 *errorString = cxstring::createEmpty(); in DiagLoader()
DARCMigrate.cpp125 *original = cxstring::createDup( in clang_remap_getFilenames()
128 *transformed = cxstring::createDup( in clang_remap_getFilenames()
DCXType.cpp206 return cxstring::createEmpty(); in clang_getTypeSpelling()
215 return cxstring::createDup(OS.str()); in clang_getTypeSpelling()
464 return cxstring::createRef(s); in clang_getTypeKindSpelling()
654 return cxstring::createEmpty(); in clang_getDeclObjCTypeEncoding()
662 return cxstring::createRef("?"); in clang_getDeclObjCTypeEncoding()
673 else return cxstring::createRef("?"); in clang_getDeclObjCTypeEncoding()
677 return cxstring::createDup(encoding); in clang_getDeclObjCTypeEncoding()
DCXTranslationUnit.h29 clang::cxstring::CXStringPool *StringPool;
DCXString.h26 namespace cxstring {
DCXSourceLocation.cpp189 *filename = cxstring::createEmpty(); in createNullLocation()
265 *filename = cxstring::createRef(PreLoc.getFilename()); in clang_getPresumedLocation()