Skip to content

Commit

Permalink
Add markup to allow natvis files for msvc IDE (#334)
Browse files Browse the repository at this point in the history
  • Loading branch information
deplinenoise authored Aug 19, 2021
1 parent 05b86cc commit 1ff4a1f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/tundra/ide/ide-common.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ binary_extension = util.make_lookup_table {
}

header_exts = util.make_lookup_table {
".h", ".hpp", ".hh", ".inl",
".h", ".hpp", ".hh", ".inl", ".natvis",
}


Expand Down
1 change: 1 addition & 0 deletions scripts/tundra/ide/msvc-common.lua
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ local cl_tags = {
['.hh'] = 'ClInclude',
['.hpp'] = 'ClInclude',
['.inl'] = 'ClInclude',
['.natvis'] = 'Natvis',
}

function msvc_generator:generate_solution(fn, projects, ext_projects, solution)
Expand Down
2 changes: 1 addition & 1 deletion scripts/tundra/tools/generic-cpp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function apply(_outer_env, options)
_outer_env:add_setup_function(generic_cpp_setup)

_outer_env:set_many {
["IGNORED_AUTOEXTS"] = { ".h", ".hpp", ".hh", ".hxx", ".inl" },
["IGNORED_AUTOEXTS"] = { ".h", ".hpp", ".hh", ".hxx", ".inl", ".natvis" },
["CCEXTS"] = { "c" },
["CXXEXTS"] = { "cpp", "cxx", "cc" },
["OBJCEXTS"] = { "m" },
Expand Down

0 comments on commit 1ff4a1f

Please sign in to comment.