@@ -440,7 +440,7 @@ class ProjectFile : public QObject {
440440 */
441441
442442 /* * Use Clang parser */
443- bool clangParser;
443+ bool clangParser{ false } ;
444444
445445 /* * Get paths where we should glob for certain files (dir="cfg"/"platforms"/etc */
446446 QStringList getSearchPaths (const QString& dir) const ;
@@ -571,21 +571,21 @@ class ProjectFile : public QObject {
571571 * If this is false then only the Debug configuration
572572 * for the set platform is analyzed.
573573 */
574- bool mAnalyzeAllVsConfigs ;
574+ bool mAnalyzeAllVsConfigs {}; // TODO: defaults to true if loading a GUI project via CLI
575575
576576 /* * Check only a selected VS configuration */
577577 QStringList mVsConfigurations ;
578578
579579 /* * Check code in headers */
580- bool mCheckHeaders ;
580+ bool mCheckHeaders { true } ;
581581
582582 /* * Check code in unused templates */
583- bool mCheckUnusedTemplates ;
583+ bool mCheckUnusedTemplates { true } ;
584584
585585 /* *
586586 * @brief Enable inline suppression.
587587 */
588- bool mInlineSuppression ;
588+ bool mInlineSuppression { true } ;
589589
590590 /* *
591591 * @brief List of include directories used to search include files.
@@ -649,13 +649,13 @@ class ProjectFile : public QObject {
649649 QString mProjectName ;
650650
651651 /* * @brief Cppcheck Premium: This value is passed to the Cert C checker if that is enabled */
652- int mCertIntPrecision ;
652+ int mCertIntPrecision {} ;
653653
654654 /* * @brief Execute clang analyzer? */
655- bool mClangAnalyzer ;
655+ bool mClangAnalyzer {} ;
656656
657657 /* * @brief Execute clang-tidy? */
658- bool mClangTidy ;
658+ bool mClangTidy {} ;
659659
660660 /* *
661661 * @brief Tags
@@ -668,10 +668,10 @@ class ProjectFile : public QObject {
668668 std::map<std::size_t , QString> mWarningTags ;
669669
670670 /* * Max CTU depth */
671- int mMaxCtuDepth ;
671+ int mMaxCtuDepth {} ;
672672
673673 /* * Max template instantiation recursion */
674- int mMaxTemplateRecursion ;
674+ int mMaxTemplateRecursion {} ;
675675
676676 QStringList mCheckUnknownFunctionReturn ;
677677
0 commit comments