Home
last modified time | relevance | path

Searched refs:createCXString (Results 1 – 13 of 13) sorted by relevance

/external/clang/tools/libclang/
DCXStoredDiagnostic.cpp52 return createCXString(Diag.getMessage(), false); in getSpelling()
60 *Disable = createCXString((Twine("-Wno-") + Option).str()); in getDiagnosticOption()
61 return createCXString((Twine("-W") + Option).str()); in getDiagnosticOption()
66 *Disable = createCXString("-ferror-limit=0"); in getDiagnosticOption()
67 return createCXString("-ferror-limit="); in getDiagnosticOption()
70 return createCXString(""); in getDiagnosticOption()
79 return createCXString(DiagnosticIDs::getCategoryNameFromID(catID)); in getCategoryText()
112 return createCXString(Hint.CodeToInsert); in getFixIt()
DCIndex.cpp2859 return createCXString(""); in clang_getTranslationUnitSpelling()
2862 return createCXString(CXXUnit->getOriginalSourceFileName(), true); in clang_getTranslationUnitSpelling()
2879 return createCXString((const char*)NULL); in clang_getFileName()
2882 return createCXString(FEnt->getName()); in clang_getFileName()
3036 return createCXString(""); in getDeclSpelling()
3042 return createCXString(Property->getIdentifier()->getName()); in getDeclSpelling()
3044 return createCXString(""); in getDeclSpelling()
3048 return createCXString(OMD->getSelector().getAsString()); in getDeclSpelling()
3054 return createCXString(CIMP->getIdentifier()->getNameStart()); in getDeclSpelling()
3057 return createCXString(""); in getDeclSpelling()
[all …]
DCXComment.cpp125 return createCXString((const char *) 0); in clang_TextComment_getText()
127 return createCXString(TC->getText(), /*DupString=*/ false); in clang_TextComment_getText()
133 return createCXString((const char *) 0); in clang_InlineCommandComment_getCommandName()
136 return createCXString(ICC->getCommandName(Traits), /*DupString=*/ false); in clang_InlineCommandComment_getCommandName()
173 return createCXString((const char *) 0); in clang_InlineCommandComment_getArgText()
175 return createCXString(ICC->getArgText(ArgIdx), /*DupString=*/ false); in clang_InlineCommandComment_getArgText()
181 return createCXString((const char *) 0); in clang_HTMLTagComment_getTagName()
183 return createCXString(HTC->getTagName(), /*DupString=*/ false); in clang_HTMLTagComment_getTagName()
205 return createCXString((const char *) 0); in clang_HTMLStartTag_getAttrName()
207 return createCXString(HST->getAttr(AttrIdx).Name, /*DupString=*/ false); in clang_HTMLStartTag_getAttrName()
[all …]
DCIndexDiagnostic.cpp65 return createCXString(StringRef(Message), false); in getSpelling()
70 *Disable = createCXString("", false); in getDiagnosticOption()
71 return createCXString("", false); in getDiagnosticOption()
75 CXString getCategoryText() const { return createCXString(""); } in getCategoryText()
83 return createCXString("", false); in getFixIt()
242 return createCXString(""); in clang_formatDiagnostic()
357 return createCXString(Out.str(), true); in clang_formatDiagnostic()
380 return createCXString(""); in clang_getDiagnosticSpelling()
385 *Disable = createCXString(""); in clang_getDiagnosticOption()
390 return createCXString(""); in clang_getDiagnosticOption()
[all …]
DCXCompilationDatabase.cpp99 return createCXString((const char*)NULL); in clang_CompileCommand_getDirectory()
102 return createCXString(cmd->Directory); in clang_CompileCommand_getDirectory()
118 return createCXString((const char*)NULL); in clang_CompileCommand_getArg()
123 return createCXString((const char*)NULL); in clang_CompileCommand_getArg()
125 return createCXString(Cmd->CommandLine[Arg]); in clang_CompileCommand_getArg()
DCXString.h32 CXString createCXString(const char *String, bool DupString = false);
35 CXString createCXString(StringRef String, bool DupString = true);
38 CXString createCXString(CXStringBuf *buf);
DCIndexCodeCompletion.cpp114 return createCXString((const char*)0); in clang_getCompletionChunkText()
137 return createCXString((*CCStr)[chunk_number].Text, false); in clang_getCompletionChunkText()
141 return createCXString(""); in clang_getCompletionChunkText()
212 return CCStr ? createCXString(CCStr->getAnnotation(annotation_number)) in clang_getCompletionAnnotation()
213 : createCXString((const char *) 0); in clang_getCompletionAnnotation()
224 return createCXString((const char *)0); in clang_getCompletionParent()
228 return createCXString(CCStr->getParentContextName(), /*DupString=*/false); in clang_getCompletionParent()
236 return createCXString((const char *) NULL); in clang_getCompletionBriefComment()
238 return createCXString(CCStr->getBriefComment(), /*DupString=*/false); in clang_getCompletionBriefComment()
318 ContainerUSR(createCXString("")), in AllocatedCXCodeCompleteResults()
[all …]
DCIndexUSRs.cpp848 return createCXString(""); in clang_getCursorUSR()
852 return createCXString(""); in clang_getCursorUSR()
856 return createCXString(""); in clang_getCursorUSR()
861 return createCXString(""); in clang_getCursorUSR()
867 return createCXString(buf); in clang_getCursorUSR()
873 return createCXString(""); in clang_getCursorUSR()
877 return createCXString(""); in clang_getCursorUSR()
886 return createCXString(buf); in clang_getCursorUSR()
889 return createCXString(""); in clang_getCursorUSR()
896 return createCXString(UG.str(), true); in clang_constructUSR_ObjCIvar()
[all …]
DCXString.cpp32 CXString cxstring::createCXString(const char *String, bool DupString){ in createCXString() function in cxstring
44 CXString cxstring::createCXString(StringRef String, bool DupString) { in createCXString() function in cxstring
59 CXString cxstring::createCXString(CXStringBuf *buf) { in createCXString() function in cxstring
DCXLoadedDiagnostic.cpp105 return cxstring::createCXString(Spelling, false); in getSpelling()
110 return createCXString(""); in getDiagnosticOption()
114 *Disable = createCXString((Twine("-Wno-") + DiagOption).str()); in getDiagnosticOption()
115 return createCXString((Twine("-W") + DiagOption).str()); in getDiagnosticOption()
123 return cxstring::createCXString(CategoryText); in getCategoryText()
203 *errorString = createCXString(err); in reportBad()
251 *errorString = createCXString(""); in DiagLoader()
645 D->FixIts.push_back(std::make_pair(SR, createCXString(RetStr, false))); in readDiagnosticBlock()
DARCMigrate.cpp126 *original = cxstring::createCXString( in clang_remap_getFilenames()
130 *transformed = cxstring::createCXString( in clang_remap_getFilenames()
DCXType.cpp430 return cxstring::createCXString(s); in clang_getTypeKindSpelling()
619 return cxstring::createCXString(""); in clang_getDeclObjCTypeEncoding()
629 return cxstring::createCXString("?"); in clang_getDeclObjCTypeEncoding()
640 else return cxstring::createCXString("?"); in clang_getDeclObjCTypeEncoding()
644 return cxstring::createCXString(encoding); in clang_getDeclObjCTypeEncoding()
DCXSourceLocation.cpp186 *filename = createCXString(""); in createNullLocation()
262 *filename = createCXString(PreLoc.getFilename()); in clang_getPresumedLocation()