forked from qt-creator/qt-creator
Clang: Print command line args for debugging
...if qtc.clangbackend.verboselib=true. Change-Id: Ibba408db955892daf055b2050d810ce55b9d8913 Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#include <commandlinearguments.h>
|
||||
#include <diagnosticset.h>
|
||||
#include <filecontainer.h>
|
||||
#include <projectpart.h>
|
||||
@@ -61,6 +62,7 @@ using ClangBackEnd::TranslationUnits;
|
||||
|
||||
using testing::IsNull;
|
||||
using testing::NotNull;
|
||||
using testing::Eq;
|
||||
using testing::Gt;
|
||||
using testing::Contains;
|
||||
using testing::EndsWith;
|
||||
@@ -148,6 +150,13 @@ TEST_F(TranslationUnit, ResetedTranslationUnitIsNull)
|
||||
ASSERT_TRUE(translationUnit.isNull());
|
||||
}
|
||||
|
||||
TEST_F(TranslationUnit, LastCommandLineArgumentIsFilePath)
|
||||
{
|
||||
const auto arguments = translationUnit.commandLineArguments();
|
||||
|
||||
ASSERT_THAT(arguments.at(arguments.count() - 1), Eq(translationUnitFilePath));
|
||||
}
|
||||
|
||||
TEST_F(TranslationUnit, TimeStampForProjectPartChangeIsUpdatedAsNewCxTranslationUnitIsGenerated)
|
||||
{
|
||||
auto lastChangeTimePoint = translationUnit.lastProjectPartChangeTimePoint();
|
||||
|
||||
Reference in New Issue
Block a user