MCPcopy Create free account
hub / github.com/OpenMW/openmw / warning

Method warning

components/compiler/errorhandler.cpp:38–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36 // Generate a warning message.
37
38 void ErrorHandler::warning(const std::string& message, const TokenLoc& loc)
39 {
40 if (mWarningsMode == 1 ||
41 // temporarily change from mode 2 to mode 1 if error downgrading is enabled to
42 // avoid infinite recursion
43 (mWarningsMode == 2 && mDowngradeErrors))
44 {
45 ++mWarnings;
46 report(message, loc, WarningMessage);
47 }
48 else if (mWarningsMode == 2)
49 error(message, loc);
50 }
51
52 // Generate an error message.
53

Callers 15

scanNameMethod · 0.80
scanSpecialMethod · 0.80
parseKeywordMethod · 0.80
parseNameMethod · 0.80
parseKeywordMethod · 0.80
parseSpecialMethod · 0.80
reportStrayArgumentMethod · 0.80
parseKeywordMethod · 0.80
parseSpecialMethod · 0.80
parseNameMethod · 0.80
parseKeywordMethod · 0.80
parseArgumentsMethod · 0.80

Calls 2

reportFunction · 0.85
errorClass · 0.85

Tested by

no test coverage detected