|
44 | 44 | #include <tinyxml2.h> |
45 | 45 | #endif |
46 | 46 |
|
47 | | -// The default template format is "gcc" |
48 | | -static const char GCC_TEMPLATE_FORMAT[] = "{file}:{line}:{column}: warning: {message} [{id}]\\n{code}"; |
49 | | -static const char GCC_TEMPLATE_LOCATION[] = "{file}:{line}:{column}: note: {info}\\n{code}"; |
50 | | - |
51 | 47 | static void addFilesToList(const std::string& FileList, std::vector<std::string>& PathNames) |
52 | 48 | { |
53 | 49 | // To keep things initially simple, if the file can't be opened, just be silent and move on. |
@@ -642,8 +638,8 @@ bool CmdLineParser::parseFromArgs(int argc, const char* const argv[]) |
642 | 638 | } |
643 | 639 |
|
644 | 640 | if (mSettings->templateFormat == "gcc") { |
645 | | - mSettings->templateFormat = GCC_TEMPLATE_FORMAT; |
646 | | - mSettings->templateLocation = GCC_TEMPLATE_LOCATION; |
| 641 | + mSettings->templateFormat = "{file}:{line}:{column}: warning: {message} [{id}]\\n{code}"; |
| 642 | + mSettings->templateLocation = "{file}:{line}:{column}: note: {info}\\n{code}"; |
647 | 643 | } else if (mSettings->templateFormat == "daca2") { |
648 | 644 | mSettings->templateFormat = "{file}:{line}:{column}: {severity}: {message} [{id}]"; |
649 | 645 | mSettings->templateLocation = "{file}:{line}:{column}: note: {info}"; |
@@ -890,9 +886,9 @@ bool CmdLineParser::parseFromArgs(int argc, const char* const argv[]) |
890 | 886 |
|
891 | 887 | // Default template format.. |
892 | 888 | if (mSettings->templateFormat.empty()) { |
893 | | - mSettings->templateFormat = GCC_TEMPLATE_FORMAT; |
| 889 | + mSettings->templateFormat = "{file}:{line}:{column}: {severity}:{inconclusive:inconclusive:} {message} [{id}]\\n{code}"; |
894 | 890 | if (mSettings->templateLocation.empty()) |
895 | | - mSettings->templateLocation = GCC_TEMPLATE_LOCATION; |
| 891 | + mSettings->templateLocation = "{file}:{line}:{column}: note: {info}\\n{code}"; |
896 | 892 | } |
897 | 893 |
|
898 | 894 | mSettings->project.ignorePaths(mIgnoredPaths); |
|
0 commit comments