clang 20.0.0git
Namespaces | Macros | Functions
CommandLineArgs.cpp File Reference
#include "clang/Testing/CommandLineArgs.h"
#include "llvm/MC/TargetRegistry.h"
#include "llvm/Support/ErrorHandling.h"
#include "clang/Testing/TestLanguage.def"

Go to the source code of this file.

Namespaces

namespace  clang
 The JSON file list parser is used to communicate input to InstallAPI.
 

Macros

#define TESTLANGUAGE_C(lang, version, std_flag, version_index)
 
#define TESTLANGUAGE_CXX(lang, version, std_flag, version_index)
 
#define TESTLANGUAGE_C(lang, version, std_flag, version_index)
 
#define TESTLANGUAGE_CXX(lang, version, std_flag, version_index)
 
#define TESTLANGUAGE_C(lang, version, std_flag, version_index)
 
#define TESTLANGUAGE_CXX(lang, version, std_flag, version_index)
 
#define TESTLANGUAGE_C(lang, version, std_flag, version_index)
 
#define TESTLANGUAGE_CXX(lang, version, std_flag, version_index)
 

Functions

std::vector< TestLanguage > clang::getCOrLater (int MinimumStd)
 
std::vector< TestLanguage > clang::getCXXOrLater (int MinimumStd)
 
std::vector< std::string > clang::getCommandLineArgsForTesting (TestLanguage Lang)
 
std::vector< std::string > clang::getCC1ArgsForTesting (TestLanguage Lang)
 
StringRef clang::getFilenameForTesting (TestLanguage Lang)
 
std::string clang::getAnyTargetForTesting ()
 Find a target name such that looking for it in TargetRegistry by that name returns the same target.
 

Macro Definition Documentation

◆ TESTLANGUAGE_C [1/4]

#define TESTLANGUAGE_C (   lang,
  version,
  std_flag,
  version_index 
)
Value:
if (version >= MinimumStd) \
Result.push_back(Lang_##lang##version);

◆ TESTLANGUAGE_C [2/4]

#define TESTLANGUAGE_C (   lang,
  version,
  std_flag,
  version_index 
)
Value:
case Lang_##lang##version: \
return { "-x", "c", "-std=" #std_flag };

◆ TESTLANGUAGE_C [3/4]

#define TESTLANGUAGE_C (   lang,
  version,
  std_flag,
  version_index 
)
Value:
case Lang_##lang##version: \
return { "-xc", "-std=" #std_flag };

◆ TESTLANGUAGE_C [4/4]

#define TESTLANGUAGE_C (   lang,
  version,
  std_flag,
  version_index 
)
Value:
case Lang_##lang##version: \
return "input.c";

◆ TESTLANGUAGE_CXX [1/4]

#define TESTLANGUAGE_CXX (   lang,
  version,
  std_flag,
  version_index 
)
Value:
if (version >= MinimumStd) \
Result.push_back(Lang_##lang##version);

◆ TESTLANGUAGE_CXX [2/4]

#define TESTLANGUAGE_CXX (   lang,
  version,
  std_flag,
  version_index 
)
Value:
case Lang_##lang##version: \
return { "-std=" #std_flag, "-frtti" };

◆ TESTLANGUAGE_CXX [3/4]

#define TESTLANGUAGE_CXX (   lang,
  version,
  std_flag,
  version_index 
)
Value:
case Lang_##lang##version: \
return { "-std=" #std_flag };

◆ TESTLANGUAGE_CXX [4/4]

#define TESTLANGUAGE_CXX (   lang,
  version,
  std_flag,
  version_index 
)
Value:
case Lang_##lang##version: \
return "input.cc";