C++11 settings in Eclipse Indexer conflict with git

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.

  • Issue with pulling in Visual studio 2015
  • Is there a way to limit an integer value to a certain range without branching?
  • Netbeans ignoring files
  • Visual Studio: Git Team Explorer does not show any changes
  • Debugging Azure functions in Visual Studio
  • Run resharper inspections on git pull request changes only
  • 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.

  • YouCompleteMe can't autocomplete
  • Problems with pushing to github repository from Eclipse: Auth fail
  • TeamCity - MSBuild - SVN - AssemblyVersion - C#
  • Git: Different Working Directory and Repository location
  • How to partition a JSF project for developers vs UI coders, when using Git as the code repository
  • Best git structure for importing android dependent project with egit in eclipse
  • One Solution collect form web for “C++11 settings in Eclipse Indexer conflict with git”

    I also use Eclipse and GIT together. Usually I make sure that all Eclipse generated files are not committed to the GIT repo. In my opinion they are not part of the code, in the sense that someone willing to recompile and run your project doesn’t need those.

    In GIT this can be achieved with the .gitignore file for example. See here for complete information:
    https://git-scm.com/docs/gitignore

    Git Baby is a git and github fan, let's start git clone.