Home
last modified time | relevance | path

Searched refs:DowngradeWarning (Results 1 – 2 of 2) sorted by relevance

/external/clang/lib/Sema/
DSemaExpr.cpp280 bool DowngradeWarning = S.getSourceManager().isInMainFile(Loc); in diagnoseUseOfInternalDeclInInlineFunction() local
281 if (!DowngradeWarning && UsedFn) in diagnoseUseOfInternalDeclInInlineFunction()
282 DowngradeWarning = UsedFn->isInlined() || UsedFn->hasAttr<ConstAttr>(); in diagnoseUseOfInternalDeclInInlineFunction()
284 S.Diag(Loc, DowngradeWarning ? diag::ext_internal_in_extern_inline_quiet in diagnoseUseOfInternalDeclInInlineFunction()
/external/llvm-project/clang/lib/Sema/
DSemaExpr.cpp173 bool DowngradeWarning = S.getSourceManager().isInMainFile(Loc); in diagnoseUseOfInternalDeclInInlineFunction() local
174 if (!DowngradeWarning && UsedFn) in diagnoseUseOfInternalDeclInInlineFunction()
175 DowngradeWarning = UsedFn->isInlined() || UsedFn->hasAttr<ConstAttr>(); in diagnoseUseOfInternalDeclInInlineFunction()
177 S.Diag(Loc, DowngradeWarning ? diag::ext_internal_in_extern_inline_quiet in diagnoseUseOfInternalDeclInInlineFunction()