In order to set up C++11 for specific projects, I'm required to add -std=c++11
to the CDT GCC Built-in Compiler Settings
under Project -> Properties -> C/C++ General -> Preprocessor Include Paths, Macros etc.
This creates a file called .settings/language.settings.xml
under every project that requires C++11. This file contains the -std=c++11
setting.
I'm committing this file into git, but alas, the file also contains an environment hash that is recalculated for every different server.
The result is merge nightmare, where every developer has to constantly revert or commit the changes in language.settings.xml
in order to work. and each time that happens, the indexer will start re-indexing everything.
Can I avoid this? can I set the indexer for C++11 per project in a different manner?
Edit: I can't just gitignore the files, because I need to share them with all developers.