Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
clangがパブリック列挙型クラスの構造を解析できるようにするにはどうすればよいですか?
access enum class enumeration-identifier [:underlying-type] { enumerator-list } [var];
私のために働きます。
$ cat main.cpp enum class Foo { X, Y }; int main() { } $ c++ --version Apple clang version 3.1 (tags/Apple/clang-318.0.58) (based on LLVM 3.1svn) Target: x86_64-apple-darwin11.4.2 Thread model: posix $ c++ -std=c++11 main.cpp -o main $ ./main