Skip to content

Commit

Permalink
Merge pull request #27788 from jbytheway/iwyu_release_fixes
Browse files Browse the repository at this point in the history
IWYU support (part 4): Fix release builds
  • Loading branch information
ZhilkinSerg authored Jan 22, 2019
2 parents d07e1e4 + f902f00 commit 3e21d66
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion tests/hash_test.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#include <chrono>
#include <functional>
#include <unordered_set>
#include <vector>
Expand All @@ -7,6 +6,10 @@
#include "map.h"
#include "enums.h"

#ifdef RELEASE
#include <chrono>
#endif

// A larger number for this would be GREAT, but the test isn't efficient enough to make it larger.
// Previously tried inserting into an unordered_set,
// but that was slower than appending to a vector and doing the sort+unique manually.
Expand Down
2 changes: 1 addition & 1 deletion tools/iwyu/sdl.imp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
{ include: ["\"SDL_stdinc.h\"", "private", "<SDL.h>", "public"] },
{ include: ["\"SDL_surface.h\"", "private", "<SDL.h>", "public"] },
{ include: ["\"SDL_timer.h\"", "private", "<SDL.h>", "public"] },
{ include: ["\"SDL_version.h\"", "private", "<SDL.h>", "public"] },
{ include: ["\"SDL_version.h\"", "public", "<SDL.h>", "public"] },
{ include: ["\"SDL_video.h\"", "private", "<SDL.h>", "public"] },
]

0 comments on commit 3e21d66

Please sign in to comment.