Searched defs:Loc (Results 51 - 75 of 312) sorted by relevance

1234567891011>>

/external/clang/include/clang/Analysis/Analyses/
H A DThreadSafety.h77 /// \param Loc -- the SourceLocation of the unresolved expression.
78 virtual void handleInvalidLockExp(StringRef Kind, SourceLocation Loc) {} argument
85 /// \param Loc -- The SourceLocation of the Unlock
87 SourceLocation Loc) {}
97 /// \param Loc -- The SourceLocation of the Unlock.
100 SourceLocation Loc) {}
106 /// \param Loc -- The location of the second lock expression.
108 SourceLocation Loc) {}
145 /// \param Loc -- The location of the protected operation.
148 SourceLocation Loc) {}
86 handleUnmatchedUnlock(StringRef Kind, Name LockName, SourceLocation Loc) argument
98 handleIncorrectUnlockKind(StringRef Kind, Name LockName, LockKind Expected, LockKind Received, SourceLocation Loc) argument
107 handleDoubleLock(StringRef Kind, Name LockName, SourceLocation Loc) argument
146 handleNoMutexHeld(StringRef Kind, const NamedDecl *D, ProtectedOperationKind POK, AccessKind AK, SourceLocation Loc) argument
159 handleMutexNotHeld(StringRef Kind, const NamedDecl *D, ProtectedOperationKind POK, Name LockName, LockKind LK, SourceLocation Loc, Name *PossibleMatch = nullptr) argument
171 handleFunExcludesLock(StringRef Kind, Name FunName, Name LockName, SourceLocation Loc) argument
[all...]
/external/clang/include/clang/Rewrite/Core/
H A DRewriter.h165 static bool isRewritable(SourceLocation Loc) { argument
166 return Loc.isFileID();
189 /// using the indentation of the source line in position \p Loc.
190 bool InsertText(SourceLocation Loc, StringRef Str,
198 bool InsertTextAfter(SourceLocation Loc, StringRef Str) { argument
199 return InsertText(Loc, Str);
204 bool InsertTextAfterToken(SourceLocation Loc, StringRef Str);
211 bool InsertTextBefore(SourceLocation Loc, StringRef Str) { argument
212 return InsertText(Loc, Str, false);
295 unsigned getLocationOffsetAndFileID(SourceLocation Loc, FileI
[all...]
/external/clang/include/clang/Sema/
H A DExternalSemaSource.h211 /// \param Loc the location at which a complete type was required but not
214 /// \param T the \c QualType that should have been complete at \p Loc
217 virtual bool MaybeDiagnoseMissingCompleteType(SourceLocation Loc, argument
H A DTemplateDeduction.h38 SourceLocation Loc; member in class:clang::sema::TemplateDeductionInfo
51 TemplateDeductionInfo(SourceLocation Loc) argument
52 : Deduced(nullptr), Loc(Loc), HasSFINAEDiagnostic(false),
58 return Loc;
89 void addSFINAEDiagnostic(SourceLocation Loc, PartialDiagnostic PD) { argument
95 std::make_pair(Loc, PartialDiagnostic::NullDiagnostic()));
101 void addSuppressedDiagnostic(SourceLocation Loc, argument
106 std::make_pair(Loc, PartialDiagnostic::NullDiagnostic()));
252 SourceLocation Loc; member in class:clang::TemplateSpecCandidateSet
261 TemplateSpecCandidateSet(SourceLocation Loc) argument
[all...]
/external/clang/lib/ARCMigrate/
H A DTransGCAttrs.cpp87 SourceLocation Loc = TL.getAttrNameLoc();
88 unsigned RawLoc = Loc.getRawEncoding();
94 if (Loc.isMacroID())
95 Loc = SM.getImmediateExpansionRange(Loc).first;
116 Attr.Loc = Loc;
173 bool isInMainFile(SourceLocation Loc) { argument
174 if (Loc.isInvalid())
178 return SM.isInFileID(SM.getExpansionLoc(Loc), S
289 SourceLocation Loc = ATLs[i].first.getAttrNameLoc(); local
[all...]
H A DTransProtectedScope.cpp190 bool isInRange(SourceLocation Loc, SourceRange R) { argument
191 if (Loc.isInvalid())
193 return !SM.isBeforeInTranslationUnit(Loc, R.getBegin()) &&
194 SM.isBeforeInTranslationUnit(Loc, R.getEnd());
H A DTransRetainReleaseDealloc.cpp333 SourceLocation Loc = Msg->getExprLoc(); local
334 if (!Loc.isMacroID())
337 StringRef MacroName = Lexer::getImmediateMacroName(Loc, SM,
H A DTransforms.h89 SourceLocation Loc; member in struct:clang::arcmt::trans::MigrationContext::GCAttrOccurrence
166 /// \brief 'Loc' is the end of a statement range. This returns the location
173 /// \brief 'Loc' is the end of a statement range. This returns the location
/external/clang/lib/AST/
H A DExprClassification.cpp35 Cl::Kinds Kind, SourceLocation &Loc);
37 Cl Expr::ClassifyImpl(ASTContext &Ctx, SourceLocation *Loc) const {
71 if (Loc)
72 modifiable = IsModifiable(Ctx, this, kind, *Loc);
571 Cl::Kinds Kind, SourceLocation &Loc) {
580 Loc = CE->getExprLoc();
648 Expr::isModifiableLvalue(ASTContext &Ctx, SourceLocation *Loc) const {
650 Classification VC = ClassifyModifiable(Ctx, Loc ? *Loc : dummy);
570 IsModifiable(ASTContext &Ctx, const Expr *E, Cl::Kinds Kind, SourceLocation &Loc) argument
/external/clang/lib/Edit/
H A DCommit.cpp20 SourceLocation Loc = SM.getLocForStartOfFile(Offset.getFID()); local
21 Loc = Loc.getLocWithOffset(Offset.getOffset());
22 assert(Loc.isFileID());
23 return Loc;
27 SourceLocation Loc = getFileLocation(SM); local
28 return CharSourceRange::getCharRange(Loc, Loc.getLocWithOffset(Length));
32 SourceLocation Loc = SM.getLocForStartOfFile(InsertFromRangeOffs.getFID()); local
33 Loc
[all...]
H A DEditedSource.cpp268 SourceLocation Loc, FileOffset offs,
271 SourceLocation BeginTokLoc = Lexer::GetBeginningOfToken(Loc, SM, LangOpts);
272 if (BeginTokLoc != Loc)
308 SourceLocation Loc = SM.getLocForStartOfFile(offs.getFID()); local
309 Loc = Loc.getLocWithOffset(offs.getOffset());
310 assert(Loc.isFileID());
313 adjustRemoval(SM, LangOpts, Loc, offs, len, text);
315 CharSourceRange range = CharSourceRange::getCharRange(Loc,
316 Loc
267 adjustRemoval(const SourceManager &SM, const LangOptions &LangOpts, SourceLocation Loc, FileOffset offs, unsigned &len, StringRef &text) argument
[all...]
/external/clang/lib/Lex/
H A DPPExpressions.cpp363 SourceLocation Loc = PeekTok.getLocation(); local
366 Result.setBegin(Loc);
376 PP.Diag(Loc, diag::warn_pp_expr_overflow) << Result.getRange();
H A DPPLexerChange.cpp72 SourceLocation Loc) {
89 getSourceManager().getBuffer(FID, Loc, &Invalid);
92 Diag(Loc, diag::err_pp_error_opening_file)
71 EnterSourceFile(FileID FID, const DirectoryLookup *CurDir, SourceLocation Loc) argument
/external/clang/lib/Parse/
H A DParseOpenMP.cpp60 SourceLocation Loc = ConsumeToken(); local
77 return Actions.ActOnOpenMPThreadprivateDirective(Loc, Identifiers);
120 SourceLocation Loc = ConsumeToken(), EndLoc; local
138 Actions.ActOnOpenMPThreadprivateDirective(Loc, Identifiers);
139 Directive = Actions.ActOnDeclStmt(Res, Loc, Tok.getLocation());
158 Actions.StartOpenMPDSABlock(DKind, DirName, Actions.getCurScope(), Loc);
201 DKind, Clauses, AssociatedStmt.get(), Loc, EndLoc);
407 SourceLocation Loc = ConsumeToken(); local
424 Kind, Val.get(), Loc, T.getOpenLocation(), T.getCloseLocation());
436 SourceLocation Loc local
467 SourceLocation Loc = Tok.getLocation(); local
481 SourceLocation Loc = ConsumeToken(); local
581 SourceLocation Loc = Tok.getLocation(); local
[all...]
H A DParseStmtAsm.cpp49 ClangAsmParserCallback(Parser &P, SourceLocation Loc, StringRef AsmString, argument
51 : TheParser(P), AsmLoc(Loc), AsmString(AsmString), AsmToks(Toks),
154 SourceLocation Loc = AsmLoc; local
157 Loc = Tok.getLocation();
158 Loc = Loc.getLocWithOffset(Offset - TokOffset);
160 TheParser.Diag(Loc, diag::err_inline_ms_asm_parsing) << D.getMessage();
592 SourceLocation Loc = Tok.getLocation();
597 Diag(Loc, diag::w_asm_qualifier_ignored) << "const";
599 Diag(Loc, dia
[all...]
H A DParseTentative.cpp575 SourceLocation Loc; local
576 if (!TryParseCXX11AttributeIdentifier(Loc)) {
582 if (!TryParseCXX11AttributeIdentifier(Loc)) {
/external/clang/lib/Rewrite/Core/
H A DDeltaTree.cpp43 static SourceDelta get(unsigned Loc, int D) { argument
45 Delta.FileLoc = Loc;
/external/clang/lib/Sema/
H A DAttributeList.cpp25 IdentifierLoc *IdentifierLoc::create(ASTContext &Ctx, SourceLocation Loc, argument
28 Result->Loc = Loc;
/external/clang/lib/StaticAnalyzer/Checkers/
H A DCheckerDocumentation.cpp123 /// \param Loc The value of the location (pointer).
128 void checkLocation(SVal Loc, bool IsLoad, const Stmt *S, argument
133 /// \param Loc The value of the location (pointer).
134 /// \param Val The value which will be stored at the location Loc.
138 void checkBind(SVal Loc, SVal Val, const Stmt *S, CheckerContext &) const {} argument
/external/clang/tools/libclang/
H A DCIndexHigh.cpp132 /// \brief For a macro \arg Loc, returns the file spelling location and sets
136 SourceLocation Loc,
138 assert(Loc.isMacroID());
139 SourceLocation SpellLoc = SM.getImmediateSpellingLoc(Loc);
143 isMacroArg = SM.isMacroArgExpansion(Loc);
183 Loc = cxloc::translateSourceLocation(clang_getCursorLocation(cursor)); local
186 Loc = SelIdLoc;
191 if (Loc.isMacroID()) {
193 Loc = getFileSpellingLoc(SM, Loc, isMacroAr
135 getFileSpellingLoc(SourceManager &SM, SourceLocation Loc, bool &isMacroArg) argument
[all...]
H A DCXSourceLocation.cpp212 const SourceLocation Loc = local
214 if (Loc.isInvalid())
219 return SM.isInSystemHeader(Loc);
223 const SourceLocation Loc = local
225 if (Loc.isInvalid())
230 return SM.isWrittenInMainFile(Loc);
244 SourceLocation Loc = SourceLocation::getFromRawEncoding(location.int_data); local
246 if (!location.ptr_data[0] || Loc.isInvalid()) {
253 SourceLocation ExpansionLoc = SM.getExpansionLoc(Loc);
287 SourceLocation Loc local
328 SourceLocation Loc = SourceLocation::getFromRawEncoding(location.int_data); local
366 SourceLocation Loc = SourceLocation::getFromRawEncoding(location.int_data); local
[all...]
/external/clang/unittests/AST/
H A DMatchVerifier.h156 SourceLocation Loc = getLocation(Node); local
157 unsigned Line = Result.SourceManager->getSpellingLineNumber(Loc);
158 unsigned Column = Result.SourceManager->getSpellingColumnNumber(Loc);
164 Loc.print(Msg, *Result.SourceManager);
/external/clang/unittests/Basic/
H A DSourceManagerTest.cpp247 SourceLocation Loc; member in struct:__anon19539::__anon19540::MacroAction
251 MacroAction(SourceLocation Loc, StringRef Name, bool isDefinition) argument
252 : Loc(Loc), Name(Name), isDefinition(isDefinition) { }
353 EXPECT_TRUE(SourceMgr.isBeforeInTranslationUnit(Macros[3].Loc, Macros[4].Loc));
357 EXPECT_TRUE(SourceMgr.isBeforeInTranslationUnit(Macros[7].Loc, Macros[8].Loc));
/external/clang/unittests/Lex/
H A DLexerTest.cpp295 SourceLocation Loc; local
296 EXPECT_TRUE(Lexer::isAtStartOfMacroExpansion(lsqrLoc, SourceMgr, LangOpts, &Loc));
297 EXPECT_EQ(Loc, macroRange.getBegin());
300 EXPECT_TRUE(Lexer::isAtEndOfMacroExpansion(rsqrLoc, SourceMgr, LangOpts, &Loc));
301 EXPECT_EQ(Loc, macroRange.getEnd());
/external/compiler-rt/lib/ubsan/
H A Dubsan_diag.cc56 uptr Loc = StackTrace::GetPreviousInstructionPc(CallerLoc);
57 return getFunctionLocation(Loc, 0);
60 Location __ubsan::getFunctionLocation(uptr Loc, const char **FName) { argument
61 if (!Loc)
66 if (!Symbolizer::GetOrInit()->SymbolizePC(Loc, &Info, 1) ||
68 return Location(Loc);
108 static void renderLocation(Location Loc) { argument
110 switch (Loc.getKind()) {
112 SourceLocation SLoc = Loc.getSourceLocation();
121 PrintModuleAndOffset(&LocBuffer, Loc
184 upperBound(MemoryLocation Loc, Range *Ranges, unsigned NumRanges) argument
197 renderMemorySnippet(const Decorator &Decor, MemoryLocation Loc, Range *Ranges, unsigned NumRanges, const Diag::Arg *Args) argument
[all...]

Completed in 312 milliseconds

1234567891011>>