GHS: Fix include-what-you-use and clang-tidy diagnostics

We will soon build GHS sources on Linux where we run these lints.
This commit is contained in:
Brad King
2019-03-20 09:43:14 -04:00
parent 41d796c09b
commit f7dca1fc97
8 changed files with 110 additions and 73 deletions

View File

@@ -7,8 +7,12 @@
#include "cmTarget.h"
#include <iosfwd>
#include <map>
#include <string>
#include <vector>
class cmCustomCommand;
class cmGeneratedFileStream;
class cmGeneratorTarget;
class cmGlobalGhsMultiGenerator;
class cmLocalGhsMultiGenerator;
@@ -51,12 +55,13 @@ private:
cmTarget::CustomCommandType commandType);
void WriteSources(std::ostream& fout_proj);
void WriteSourceProperty(std::ostream& fout, const cmSourceFile* sf,
std::string propName, std::string propFlag);
std::string const& propName,
std::string const& propFlag);
void WriteReferences(std::ostream& fout);
static void WriteObjectLangOverride(std::ostream& fout,
const cmSourceFile* sourceFile);
bool DetermineIfIntegrityApp(void);
bool DetermineIfIntegrityApp();
cmGeneratorTarget* GeneratorTarget;
cmLocalGhsMultiGenerator* LocalGenerator;
cmMakefile* Makefile;