1. 10 Oct, 2016 1 commit
    • Brad King's avatar
      VS: Split flag table between v140 and v141 toolsets · b1d67ae8
      Brad King authored
      In commit v3.7.0-rc1~156^2~1 (VS: Update v140 flag tables from VS 15
      MSBuild files, 2016-09-02) we extended the v140 flag table with values
      from the v141 toolset that comes with VS 15.  However, the v140 toolset
      that comes with VS 14 does not have all of these entries and so the
      flags just need to be passed without special mapping.  In order to
      support both toolsets, split our CL flag table into separate copies for
      each version and switch off the toolset name.
      
      Closes: #16352
      b1d67ae8
  2. 06 Sep, 2016 1 commit
    • Brad King's avatar
      VS: Update v140 flag tables from VS 15 MSBuild files · a8936656
      Brad King authored
      Run cmparseMSBuildXML.py on cl.xml, lib.xml, link.xml, and masm.xml to
      generate our flag tables:
      
       python cmparseMSBuildXML.py -x ".../Common7/IDE/VC/VCTargets/1033/cl.xml" > cmVS14CLFlagTable.h
       python cmparseMSBuildXML.py -x ".../Common7/IDE/VC/VCTargets/1033/lib.xml" > cmVS14LibFlagTable.h
       python cmparseMSBuildXML.py -x ".../Common7/IDE/VC/VCTargets/1033/link.xml" > cmVS14LinkFlagTable.h
       python cmparseMSBuildXML.py -x ".../Common7/IDE/VC/VCTargets/BuildCustomizations/masm.xml" > cmVS14MASMFlagTable.h
      
      Manually integrate the changes with those we've made since earlier
      import to add the new flag mappings.
      a8936656
  3. 17 Jun, 2016 1 commit
    • Brad King's avatar
      VS: Fix regressed mapping for the cl `/Os` compiler flag · 78249be2
      Brad King authored
      In commit v3.6.0-rc1~279^2~10 (VS: in Clang/C2 toolset, setup correct
      compiler settings, 2016-02-18) a flag mapping was added for the clang
      `-Os` flag.  However, this collides with a mapping we already had for
      the MSVC flag of the same name.  This is a symptom of a larger problem
      in that the VS generators need a per-toolset flag map (issue #16153).
      
      For now, simply drop the new mapping and drop `-Os` from clang compiler
      flags in the MinSizeRel configuration.
      Reported-by: Felix Bruns's avatarFelix Bruns <felixbruns@gmail.com>
      78249be2
  4. 16 May, 2016 1 commit
    • Kitware Robot's avatar
      Revise C++ coding style using clang-format · d9fd2f54
      Kitware Robot authored
      Run the `Utilities/Scripts/clang-format.bash` script to update
      all our C++ code to a new style defined by `.clang-format`.
      Use `clang-format` version 3.8.
      
      * If you reached this commit for a line in `git blame`, re-run the blame
        operation starting at the parent of this commit to see older history
        for the content.
      
      * See the parent commit for instructions to rebase a change across this
        style transition commit.
      d9fd2f54
  5. 10 Mar, 2016 2 commits
  6. 25 Jun, 2014 2 commits
    • Brad King's avatar
      VS14: Fix Cl and Link flag tables as previous versions · bdc7d9c8
      Brad King authored
      Apply the flag table fixes from:
      
       commit 9c7f234c (VS: Fix /MANIFESTUAC:NO linker option mapping, 2014-05-07)
       commit e8633e66 (VS: Fix /analyze:log flag mapping, 2014-04-01)
       commit f2caf795 (VS: Fix /MAP:mapfile flag mapping, 2013-07-09)
      
      to the VS 14 flag tables.
      bdc7d9c8
    • Brad King's avatar
      VS14: Generate flag tables from MSBuild v140 tool files · d96b3f68
      Brad King authored
      Run cmparseMSBuildXML.py on cl.xml, lib.xml, and link.xml to generate
      our flag tables:
      
       python cmparseMSBuildXML.py -x ".../MSBuild/Microsoft.Cpp/v4.0/V140/1033/cl.xml" > cmVS14CLFlagTable.h
       python cmparseMSBuildXML.py -x ".../MSBuild/Microsoft.Cpp/v4.0/V140/1033/lib.xml" > cmVS14LibFlagTable.h
       python cmparseMSBuildXML.py -x ".../MSBuild/Microsoft.Cpp/v4.0/V140/1033/link.xml" > cmVS14LinkFlagTable.h
      
      Fix up the declaration names at the top of each file.  Finally, teach
      cmVisualStudio10TargetGenerator to select the version of the table
      matching the version of VS.
      
      Co-Author: Pawel Stopinski <diokhan@go2.pl>
      d96b3f68
  7. 01 Apr, 2014 1 commit
    • Brad King's avatar
      VS: Fix /analyze:log flag mapping (#14858) · e8633e66
      Brad King authored
      Fix the VS 11 and VS 12 flag table entries for this flag.  It requires
      a value in the following argument.  Also drop the general "/analyze:"
      flag table entry so that such flags will be passed through as plain
      additional options.  This is necessary because some such options have
      following values and some do not but not all have .vcxproj elements
      to hold the values.
      e8633e66
  8. 28 Jun, 2013 1 commit
    • Brad King's avatar
      VS12: Generate flag tables from MSBuild v120 tool files · e99d7b1c
      Brad King authored
      Run cmparseMSBuildXML.py on cl.xml, lib.xml, and link.xml to generate
      our flag tables:
      
       python cmparseMSBuildXML.py -x ".../MSBuild/Microsoft.Cpp/v4.0/v120/1033/cl.xml" > cmVS12CLFlagTable.h
       python cmparseMSBuildXML.py -x ".../MSBuild/Microsoft.Cpp/v4.0/v120/1033/lib.xml" > cmVS12LibFlagTable.h
       python cmparseMSBuildXML.py -x ".../MSBuild/Microsoft.Cpp/v4.0/v120/1033/link.xml" > cmVS12LinkFlagTable.h
      
      Fix up the declaration names at the top of each file.  Finally, teach
      cmVisualStudio10TargetGenerator to select the version of the table
      matching the version of VS.
      e99d7b1c
  9. 22 Aug, 2012 1 commit
    • Brad King's avatar
      VS11: Generate flag tables from MSBuild V110 tool files · 9b2dda5d
      Brad King authored
      Run cmparseMSBuildXML.py on cl.xml, lib.xml, and link.xml to generate
      our flag tables:
      
       python cmparseMSBuildXML.py -x ".../MSBuild/Microsoft.Cpp/v4.0/V110/1033/cl.xml" > cmVS11CLFlagTable.h
       python cmparseMSBuildXML.py -x ".../MSBuild/Microsoft.Cpp/v4.0/V110/1033/lib.xml" > cmVS11LibFlagTable.h
       python cmparseMSBuildXML.py -x ".../MSBuild/Microsoft.Cpp/v4.0/V110/1033/link.xml" > cmVS11LinkFlagTable.h
      
      Fix up the declaration names at the top of each file.  Finally, teach
      cmVisualStudio10TargetGenerator to select the version of the table
      matching the version of VS.
      9b2dda5d
  10. 28 Oct, 2009 1 commit
  11. 23 Oct, 2009 1 commit
    • Brad King's avatar
      Fix optionally-valued booleans in VS 10 flag table · 8ae66bf4
      Brad King authored
      This commit fixes the cmparseMSBuildXML.py script to generate correct
      flag table entries for booleans with optional value.  These flags use
      two entries: the first should ignore the value and enable the option,
      and the second should use the value if given.  Previously the first
      entry did not recognize flags with values.
      
      In particular this fixes flags like /MP4, but the change corrects
      matching of some other flags too.  See issue #9771.
      8ae66bf4
  12. 22 Oct, 2009 1 commit
    • Brad King's avatar
      Fix VS 10 flag table for precompiled headers · 457b9532
      Brad King authored
      The VS 10 flag table generation script did not produce correct entries
      for precompiled header flags.  Since precompiled header flag translation
      requires multiple entries cooperating in a certain order, it is not
      worth the time to make the generation script work automatically.  This
      commit manually adds the proper entries.
      
      See issue #9753.
      457b9532
  13. 01 Oct, 2009 1 commit
  14. 29 Sep, 2009 1 commit
    • Brad King's avatar
      Add StringProperty options for VS 10 flag table · d6b47bee
      Brad King authored
      The commit "cmparseMSBuildXML should output StringProperty values too"
      fixed the script that generated
      
        Source/cmVS10CLFlagTable.h
        Source/cmVS10LibFlagTable.h
        Source/cmVS10LinkFlagTable.h
      
      This commit updates the files with the new output.
      d6b47bee
  15. 30 Jun, 2009 1 commit
  16. 26 Jun, 2009 1 commit
  17. 25 Jun, 2009 1 commit