summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cpptoolsplugin.cpp
diff options
context:
space:
mode:
authorBernhard Beschow <shentey@gmail.com>2021-01-01 19:19:10 +0100
committerBernhard Beschow <shentey@gmail.com>2021-01-22 10:51:53 +0000
commit5d7f2d7444e3542cfece720aa6f81be741eb6d26 (patch)
treee847a9566826e31cf1e5248fc67c466d70dae586 /src/plugins/cpptools/cpptoolsplugin.cpp
parentd8c1e51bfeafa4498e3c0ef3738c36897a37ece4 (diff)
downloadqt-creator-5d7f2d7444e3542cfece720aa6f81be741eb6d26.tar.gz
AutoTest: Use working copy of own parser
In TestCodeParser::syncTestFrameworks(), a parser is created for every test framework. As a result, the last parser being created would "win" the global s_parserInstance variable, which is not predictable and probably not intended. So turn CppParser::getFileContent() into a non- static method, avoiding the global variable altogether. Change-Id: I9f7560f1185bc4a3bc7b2b36e89280351998465e Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/cpptools/cpptoolsplugin.cpp')
0 files changed, 0 insertions, 0 deletions