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

Function AddAttributeTargetName

IDEHelper/Compiler/BfModule.cpp:12079–12098  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12077}
12078
12079static void AddAttributeTargetName(BfAttributeTargets& flagsLeft, BfAttributeTargets checkFlag, String& str, String addString)
12080{
12081 if ((flagsLeft & checkFlag) == 0)
12082 return;
12083
12084 if (!str.empty())
12085 {
12086 if (flagsLeft == checkFlag)
12087 {
12088 if ((int)str.IndexOf(',') != -1)
12089 str += ", and ";
12090 else
12091 str += " and ";
12092 }
12093 else
12094 str += ", ";
12095 }
12096 str += addString;
12097 flagsLeft = (BfAttributeTargets)(flagsLeft & ~checkFlag);
12098}
12099
12100static String GetAttributesTargetListString(BfAttributeTargets attrTarget)
12101{

Callers 1

Calls 2

emptyMethod · 0.45
IndexOfMethod · 0.45

Tested by

no test coverage detected