| OLD | NEW |
| 1 # Generated by YCM Generator at 2015-07-02 20:29:48.944316 | 1 # Generated by YCM Generator at 2015-07-02 20:29:48.944316 |
| 2 | 2 |
| 3 # This file is NOT licensed under the GPLv3, which is the license for the rest | 3 # This file is NOT licensed under the GPLv3, which is the license for the rest |
| 4 # of YouCompleteMe. | 4 # of YouCompleteMe. |
| 5 # | 5 # |
| 6 # Here's the license text for this file: | 6 # Here's the license text for this file: |
| 7 # | 7 # |
| 8 # This is free and unencumbered software released into the public domain. | 8 # This is free and unencumbered software released into the public domain. |
| 9 # | 9 # |
| 10 # Anyone is free to copy, modify, publish, use, compile, sell, or | 10 # Anyone is free to copy, modify, publish, use, compile, sell, or |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | 24 # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
| 25 # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | 25 # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
| 26 # IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR | 26 # IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR |
| 27 # OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, | 27 # OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, |
| 28 # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | 28 # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
| 29 # OTHER DEALINGS IN THE SOFTWARE. | 29 # OTHER DEALINGS IN THE SOFTWARE. |
| 30 # | 30 # |
| 31 # For more information, please refer to <http://unlicense.org/> | 31 # For more information, please refer to <http://unlicense.org/> |
| 32 | 32 |
| 33 | 33 |
| 34 # NOTE(fletch-vim-users): | 34 # NOTE(dartino-vim-users): |
| 35 # | 35 # |
| 36 # This file can be generated by | 36 # This file can be generated by |
| 37 # * Using the YCME Generator [0] | 37 # * Using the YCME Generator [0] |
| 38 # * Modifying tools/{cc,cxx}_wrapper.py | 38 # * Modifying tools/{cc,cxx}_wrapper.py |
| 39 # | 39 # |
| 40 # The resulting file was modified in a minor way to set the correct include | 40 # The resulting file was modified in a minor way to set the correct include |
| 41 # paths. | 41 # paths. |
| 42 # | 42 # |
| 43 # [0] https://github.com/rdnetto/YCM-Generator | 43 # [0] https://github.com/rdnetto/YCM-Generator |
| 44 | 44 |
| 45 import os | 45 import os |
| 46 import ycm_core | 46 import ycm_core |
| 47 | 47 |
| 48 global_flags = [ | 48 global_flags = [ |
| 49 '-DDEBUG', | 49 '-DDEBUG', |
| 50 '-DFLETCH32', | 50 '-DDARTINO32', |
| 51 '-DFLETCH64', | 51 '-DDARTINO64', |
| 52 '-DFLETCH_ASAN', | 52 '-DDARTINO_ASAN', |
| 53 '-DFLETCH_CLANG', | 53 '-DDARTINO_CLANG', |
| 54 '-DFLETCH_TARGET_IA32', | 54 '-DDARTINO_TARGET_IA32', |
| 55 '-DFLETCH_TARGET_X64', | 55 '-DDARTINO_TARGET_X64', |
| 56 '-DFLETCH_TARGET_OS_POSIX', | 56 '-DDARTINO_TARGET_OS_POSIX', |
| 57 '-DNDEBUG', | 57 '-DNDEBUG', |
| 58 '-DTESTING', | 58 '-DTESTING', |
| 59 '-I.', | 59 '-I.', |
| 60 '-Isrc/vm', | 60 '-Isrc/vm', |
| 61 '-Isrc/shared', | 61 '-Isrc/shared', |
| 62 '-Wall', | 62 '-Wall', |
| 63 '-Werror', | 63 '-Werror', |
| 64 '-Wextra', | 64 '-Wextra', |
| 65 '-Wno-comment', | 65 '-Wno-comment', |
| 66 '-Wno-format', | 66 '-Wno-format', |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 | 112 |
| 113 def FlagsForFile( filename, **kwargs ): | 113 def FlagsForFile( filename, **kwargs ): |
| 114 relative_to = DirectoryOfThisScript() | 114 relative_to = DirectoryOfThisScript() |
| 115 final_flags = MakeRelativePathsInFlagsAbsolute( global_flags, relative_to ) | 115 final_flags = MakeRelativePathsInFlagsAbsolute( global_flags, relative_to ) |
| 116 | 116 |
| 117 return { | 117 return { |
| 118 'flags': final_flags, | 118 'flags': final_flags, |
| 119 'do_cache': True | 119 'do_cache': True |
| 120 } | 120 } |
| 121 | 121 |
| OLD | NEW |