2014-02-19 31 views

回答

4

檢查這個文件: llvm.git /工具/鐺/包括/鐺/前端/ LangStandards.def
online version from github
由編譯器所支持的不斷變化,你可以檢查這個文件的標準和親自嘗試一下。

// C++ modes 
LANGSTANDARD(cxx98, "c++98", 
      "ISO C++ 1998 with amendments", 
      LineComment | CPlusPlus | Digraphs) 
LANGSTANDARD(cxx03, "c++03", 
      "ISO C++ 1998 with amendments", 
      LineComment | CPlusPlus | Digraphs) 
LANGSTANDARD(gnucxx98, "gnu++98", 
      "ISO C++ 1998 with amendments and GNU extensions", 
      LineComment | CPlusPlus | Digraphs | GNUMode) 

LANGSTANDARD(cxx0x, "c++0x", 
      "ISO C++ 2011 with amendments", 
      LineComment | CPlusPlus | CPlusPlus11 | Digraphs) 
LANGSTANDARD(cxx11, "c++11", 
      "ISO C++ 2011 with amendments", 
      LineComment | CPlusPlus | CPlusPlus11 | Digraphs) 
LANGSTANDARD(gnucxx0x, "gnu++0x", 
      "ISO C++ 2011 with amendments and GNU extensions", 
      LineComment | CPlusPlus | CPlusPlus11 | Digraphs | GNUMode) 
LANGSTANDARD(gnucxx11, "gnu++11", 
      "ISO C++ 2011 with amendments and GNU extensions", 
      LineComment | CPlusPlus | CPlusPlus11 | Digraphs | GNUMode)