MCPcopy Create free account
hub / github.com/beefytech/Beef / Warn

Method Warn

IDEHelper/Compiler/BfSystem.cpp:1837–1847  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1835}
1836
1837BfError* BfPassInstance::Warn(int warningNumber, const StringImpl& warning)
1838{
1839 mWarnIdx++;
1840 mLastWasAdded = false;
1841 mLastWasDisplayed = (int)mErrors.size() <= sMaxDisplayErrors;
1842 if (!mLastWasDisplayed)
1843 return NULL;
1844 (void)warningNumber;//CDH TODO is warningNumber meaningful here w/o context? n/a for now
1845 OutputLine((":warn WARNING: " + warning).c_str());
1846 return NULL;
1847}
1848
1849BfError* BfPassInstance::Warn(int warningNumber, const StringImpl& warning, BfAstNode* refNode, bool isDeferred)
1850{

Callers

nothing calls this directly

Calls 7

GetSourceDataMethod · 0.80
IsUnwarnedAtMethod · 0.80
sizeMethod · 0.45
c_strMethod · 0.45
ToParserDataMethod · 0.45
GetSrcStartMethod · 0.45
GetSrcLengthMethod · 0.45

Tested by

no test coverage detected