11#include "llvm/ADT/StringSwitch.h"
16 return llvm::StringSwitch<InputKind>(Extension)
28 .Cases(
"cpp",
"CPP",
"c++",
"cxx",
"hpp",
"hxx",
Language::CXX)
static InputKind getInputKindForExtension(StringRef Extension)
getInputKindForExtension - Return the appropriate input kind for a file extension.
@ C
Languages that the frontend can parse and compile.
@ LLVM_IR
LLVM IR: we accept this so that we can run the optimizer on it, and compile it to assembly or object ...
@ Asm
Assembly: we accept this only so that we can preprocess it.