mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
CmdDiagnostics: Uses libshared cppCompliance call
This commit is contained in:
parent
12e30bf969
commit
53310d1ea0
1 changed files with 1 additions and 11 deletions
|
@ -119,19 +119,9 @@ int CmdDiagnostics::execute (std::string& output)
|
||||||
<< '\n';
|
<< '\n';
|
||||||
|
|
||||||
// Compiler compliance level.
|
// Compiler compliance level.
|
||||||
std::string compliance = "non-compliant";
|
|
||||||
#ifdef __cplusplus
|
|
||||||
int level = __cplusplus;
|
|
||||||
if (level == 199711)
|
|
||||||
compliance = "C++98/03";
|
|
||||||
else if (level == 201103)
|
|
||||||
compliance = "C++11";
|
|
||||||
else
|
|
||||||
compliance = format (level);
|
|
||||||
#endif
|
|
||||||
out << ' ' << STRING_CMD_DIAG_COMPLIANCE
|
out << ' ' << STRING_CMD_DIAG_COMPLIANCE
|
||||||
<< ": "
|
<< ": "
|
||||||
<< compliance
|
<< cppCompliance ()
|
||||||
<< "\n\n";
|
<< "\n\n";
|
||||||
|
|
||||||
out << bold.colorize (STRING_CMD_DIAG_FEATURES)
|
out << bold.colorize (STRING_CMD_DIAG_FEATURES)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue