gecko-dev/build/clang-plugin
Kartikaya Gupta e9cad65dd5 Bug 1438866 - Mark empty filenames not interesting. r=emilio
In some cases we have SourceLocation objections that are isMacroId()
rather than isFileId() and so don't have a filename at all. In other
cases the filename is something clang-internal like "<scratch>". In
both of these situations we don't want to output any analysis data.
However, the code previously was taking the empty filename and resolving
it relative to the source folder, and then tried to write to the
source folder or create a file corresponding to a subfolder. This
resulted in general badness. This patch makes sure we ignore analysis
from places that don't have a corresponding file so that we don't
have this problem.

MozReview-Commit-ID: 7WluygY9Uy8

--HG--
extra : rebase_source : 35d7e71fc05bbd5a3357a57db9de25782178622a
2018-02-18 22:18:57 -05:00
..
mozsearch-plugin Bug 1438866 - Mark empty filenames not interesting. r=emilio 2018-02-18 22:18:57 -05:00
tests Bug 1436263 - Part 3: Remove `virtual` from final virtual function declarations. r=froydnj 2018-02-08 21:22:43 -08:00
.clang-format
ArithmeticArgChecker.cpp Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
ArithmeticArgChecker.h Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
AssertAssignmentChecker.cpp Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
AssertAssignmentChecker.h Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
BaseCheck.h Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
CanRunScriptChecker.cpp Bug 1434001: Handle lambdas in CanRunScriptChecker. r=mystor 2018-01-29 22:08:15 +01:00
CanRunScriptChecker.h Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
Checks.inc Bug 1398874 - Add static analysis to reject ParamTraits specializations for enum types. r=mystor 2017-12-05 10:26:41 -05:00
ChecksIncludes.inc Bug 1398874 - Add static analysis to reject ParamTraits specializations for enum types. r=mystor 2017-12-05 10:26:41 -05:00
CustomMatchers.h Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
CustomTypeAnnotation.cpp Bug 1434689 - Part 1: Add moz_temporary_class annotation. r=mystor 2018-01-31 15:03:26 -08:00
CustomTypeAnnotation.h Bug 1434689 - Part 1: Add moz_temporary_class annotation. r=mystor 2018-01-31 15:03:26 -08:00
DanglingOnTemporaryChecker.cpp Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
DanglingOnTemporaryChecker.h Bug 1374024 - add checker to prevent dangling pointers returned by method calls on temporaries. r=mystor 2017-07-05 16:14:21 +02:00
DiagnosticsMatcher.cpp Bug 1434326: Cleanup DiagnosticsMatcher constructor. r=mystor 2018-01-30 17:40:00 +01:00
DiagnosticsMatcher.h Bug 1434326: Cleanup DiagnosticsMatcher constructor. r=mystor 2018-01-30 17:40:00 +01:00
ExplicitImplicitChecker.cpp Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
ExplicitImplicitChecker.h Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
ExplicitOperatorBoolChecker.cpp Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
ExplicitOperatorBoolChecker.h Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
KungFuDeathGripChecker.cpp Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
KungFuDeathGripChecker.h Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
Makefile.in Bug 1411712 - Move ldflags munging by the clang-plugin to moz.build r=mshal 2017-11-02 11:47:48 -07:00
MemMoveAnnotation.h Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
MozCheckAction.cpp Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
MozillaTidyModule.cpp Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
MustOverrideChecker.cpp Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
MustOverrideChecker.h Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
MustReturnFromCallerChecker.cpp Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
MustReturnFromCallerChecker.h Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
MustUseChecker.cpp Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
MustUseChecker.h Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
NaNExprChecker.cpp Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
NaNExprChecker.h Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
NeedsNoVTableTypeChecker.cpp Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
NeedsNoVTableTypeChecker.h Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
NoAddRefReleaseOnReturnChecker.cpp Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
NoAddRefReleaseOnReturnChecker.h Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
NoAutoTypeChecker.cpp Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
NoAutoTypeChecker.h Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
NoDuplicateRefCntMemberChecker.cpp Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
NoDuplicateRefCntMemberChecker.h Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
NoExplicitMoveConstructorChecker.cpp Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
NoExplicitMoveConstructorChecker.h Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
NonMemMovableMemberChecker.cpp Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
NonMemMovableMemberChecker.h Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
NonMemMovableTemplateArgChecker.cpp Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
NonMemMovableTemplateArgChecker.h Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
NonParamInsideFunctionDeclChecker.cpp Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
NonParamInsideFunctionDeclChecker.h Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
OverrideBaseCallChecker.cpp Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
OverrideBaseCallChecker.h Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
OverrideBaseCallUsageChecker.cpp Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
OverrideBaseCallUsageChecker.h Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
ParamTraitsEnumChecker.cpp Bug 1398874 - Add static analysis to reject ParamTraits specializations for enum types. r=mystor 2017-12-05 10:26:41 -05:00
ParamTraitsEnumChecker.h Bug 1398874 - Add static analysis to reject ParamTraits specializations for enum types. r=mystor 2017-12-05 10:26:41 -05:00
RecurseGuard.h Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
RefCountedCopyConstructorChecker.cpp Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
RefCountedCopyConstructorChecker.h Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
RefCountedInsideLambdaChecker.cpp Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
RefCountedInsideLambdaChecker.h Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
ScopeChecker.cpp Bug 1434689 - Part 1: Add moz_temporary_class annotation. r=mystor 2018-01-31 15:03:26 -08:00
ScopeChecker.h Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
SprintfLiteralChecker.cpp Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
SprintfLiteralChecker.h Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
StmtToBlockMap.h Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
ThirdPartyPaths.h Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
ThirdPartyPaths.py Bug 1339537 - Part 1: Teach the clang plugin about ThirdPartyPaths.txt, r=ehsan 2017-04-27 12:44:46 -04:00
TrivialCtorDtorChecker.cpp Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
TrivialCtorDtorChecker.h Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
Utils.h Bug 1405993 - Part 1: Don't report warnings for sprintf calls in ICU. r=mystor 2017-11-01 11:47:59 -07:00
VariableUsageHelpers.cpp Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
VariableUsageHelpers.h Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00
import_mozilla_checks.py Bug 1339537 - Part 1: Teach the clang plugin about ThirdPartyPaths.txt, r=ehsan 2017-04-27 12:44:46 -04:00
moz.build Bug 1398874 - Add static analysis to reject ParamTraits specializations for enum types. r=mystor 2017-12-05 10:26:41 -05:00
plugin.h Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor 2017-10-20 19:11:50 +02:00