mirror of https://gitlab.com/cppit/libclangmm
4 changed files with 24 additions and 1 deletions
@ -0,0 +1,18 @@ |
|||||||
|
#include "Diagnostic.h" |
||||||
|
|
||||||
|
const std::string clang::Diagnostic::get_severity_spelling(unsigned severity) { |
||||||
|
switch(severity) { |
||||||
|
case 0: |
||||||
|
return "Ignored"; |
||||||
|
case 1: |
||||||
|
return "Note"; |
||||||
|
case 2: |
||||||
|
return "Warning"; |
||||||
|
case 3: |
||||||
|
return "Error"; |
||||||
|
case 4: |
||||||
|
return "Fatal"; |
||||||
|
default: |
||||||
|
return ""; |
||||||
|
} |
||||||
|
} |
||||||
Loading…
Reference in new issue