File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
ql/lib/semmle/code/csharp Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ public CompilerVersion(Options options)
7575 }
7676
7777 // If csc is specified as compiler name, then attempt to read the version information from csc.dll
78- var compilerBinaryName = SpecifiedCompiler . EndsWith ( "csc" ) ? $ "{ SpecifiedCompiler } .dll" : SpecifiedCompiler ;
78+ var compilerBinaryName = Path . GetFileName ( SpecifiedCompiler ) == "csc" ? $ "{ SpecifiedCompiler } .dll" : SpecifiedCompiler ;
7979 var versionInfo = FileVersionInfo . GetVersionInfo ( compilerBinaryName ) ;
8080 if ( ! knownCompilerNames . TryGetValue ( versionInfo . OriginalFilename ?? string . Empty , out var vendor ) )
8181 {
Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ private import semmle.code.csharp.ExprOrStmtParent
1313private import semmle.code.csharp.metrics.Complexity
1414private import TypeRef
1515
16+ private predicate myTest ( Callable c ) { c .fromSource ( ) }
17+
1618/**
1719 * An element that can be called.
1820 *
You can’t perform that action at this time.
0 commit comments