Do not insert SPDX identifier if already present in SyntaxTest

This commit is contained in:
Alex Beregszaszi
2021-01-18 16:15:17 +01:00
committed by Kamil Śliwak
parent 5bbb017915
commit 6f1f0c5bbc
4 changed files with 18 additions and 3 deletions
+3
View File
@@ -50,6 +50,9 @@ public:
TestResult run(std::ostream& _stream, std::string const& _linePrefix = "", bool _formatted = false) override;
protected:
/// Returns @param _sourceCode prefixed with the version pragma and the SPDX license identifier.
static std::string addPreamble(std::string const& _sourceCode);
void setupCompiler();
void parseAndAnalyze() override;
virtual void filterObtainedErrors();