MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / IsCPPKeyword

Function IsCPPKeyword

tensorflow/cc/framework/cc_op_gen.cc:362–471  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

360}
361
362bool IsCPPKeyword(StringPiece name) {
363 static const std::unordered_set<StringPiece, StringPieceHasher>
364 // Keywords obtained from http://en.cppreference.com/w/cpp/keyword
365 kCPPReserved{
366 "alignas",
367 "alignof",
368 "and",
369 "and_eq",
370 "asm",
371 "atomic_cancel",
372 "atomic_commit",
373 "atomic_noexcept",
374 "auto",
375 "bitand",
376 "bitor",
377 "bool",
378 "break",
379 "case",
380 "catch",
381 "char",
382 "char16_t",
383 "char32_t",
384 "class",
385 "compl",
386 "concept",
387 "const",
388 "const_cast",
389 "constexpr",
390 "continue",
391 "decltype",
392 "default",
393 "delete",
394 "do",
395 "double",
396 "dynamic_cast",
397 "else",
398 "enum",
399 "explicit",
400 "export",
401 "extern",
402 "false",
403 "final",
404 "float",
405 "for",
406 "friend",
407 "goto",
408 "if",
409 "import",
410 "inline",
411 "int",
412 "long",
413 "module",
414 "mutable",
415 "namespace",
416 "new",
417 "noexcept",
418 "not",
419 "not_eq",

Callers 1

AvoidCPPKeywordsFunction · 0.85

Calls 1

countMethod · 0.45

Tested by

no test coverage detected