Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: apply clang-tidy performance checks #3393

Closed
wants to merge 168 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
168 commits
Select commit Hold shift + click to select a range
a12b47e
Temp commit, now with compiling
joveeater Dec 3, 2022
ad0ef91
More refactoring
joveeater Feb 23, 2023
454ca13
vehicles fix
joveeater Mar 10, 2023
24b3ddd
More bugfixes and the start of the test suite
joveeater Mar 20, 2023
16e53ef
Merge branch 'upload' into spring-refactor
joveeater Mar 29, 2023
2380410
Merge branch 'upload' into spring-refactor
joveeater Mar 29, 2023
944cc0f
More bugfixes
joveeater Mar 30, 2023
a2b39d7
More bugfixes
joveeater Mar 30, 2023
d60311c
Beginning of better types
joveeater Apr 4, 2023
6b70aa5
More new stuff, no compiling
joveeater Apr 7, 2023
7510577
More moving to smart pointers
joveeater Apr 10, 2023
713af91
Bit more
joveeater Apr 10, 2023
0da8198
More more more
joveeater Apr 23, 2023
1110027
MOAR
joveeater Apr 25, 2023
5d5897a
More
joveeater Apr 25, 2023
6bcf8eb
even more
joveeater Apr 27, 2023
60c2393
style: typo `item_spawn` -> `item::spawn`
scarf005 Apr 27, 2023
50518b2
style: remove unnecessary `std::move`, use `->` for activity
scarf005 Apr 27, 2023
3553401
fix: legacy null item reference
scarf005 Apr 27, 2023
0b12953
docs: return type of reduce_charges
scarf005 Apr 27, 2023
18112e1
style: astyle
scarf005 Apr 27, 2023
bcfe831
Merge pull request #1 from scarf005/copy-elision
joveeater Apr 27, 2023
767c545
Now with compiling
joveeater May 5, 2023
189100b
More fixes
joveeater May 5, 2023
0209ed3
More fixes
joveeater May 6, 2023
6d6a28f
Pre-merge commit, fairly stable now
joveeater May 7, 2023
4bd3a36
Round out interfaces
joveeater May 7, 2023
c82307f
All merged up
joveeater May 7, 2023
8c1c36a
Better vehicles and cleanup
joveeater May 7, 2023
cd3aa3d
Remove traces and better destruction
joveeater May 7, 2023
c5ea05a
Attempt to appease gcc with vectors
joveeater May 7, 2023
4b624a5
Pretty sure this wasn't me but ok
joveeater May 7, 2023
b9c775c
ty clang tidy
joveeater May 7, 2023
a40f45f
Oh yeah sounds exist
joveeater May 7, 2023
f0b724c
bug fix
joveeater May 8, 2023
74a2366
More merging
joveeater May 8, 2023
7138c39
Remove unused overmap constructors as they fail on some compilers
joveeater May 8, 2023
0fe91b6
Backwards compat
joveeater May 8, 2023
23d1af1
Test suite compiles now
joveeater May 9, 2023
1567f4a
MOAR
joveeater May 15, 2023
2225190
More more more
joveeater May 16, 2023
e9f6c96
Test suite passes
joveeater May 18, 2023
075d984
Merge branch 'upload' into spring-refactor
joveeater May 18, 2023
0a196b6
Bad move
joveeater May 18, 2023
9514ef2
Fix missing super character constructors
joveeater May 18, 2023
0e55826
Update init.cpp
joveeater May 18, 2023
5490d6c
Update src/init.cpp
joveeater May 18, 2023
a3018d2
Update src/init.cpp
joveeater May 18, 2023
a1d4fdc
Update init.cpp
joveeater May 18, 2023
f6fef39
Merge remote-tracking branch 'upstream/deferred-loading-ub' into spri…
joveeater May 18, 2023
94efd3b
Remove unused stuff
joveeater May 18, 2023
a1a6935
And the missed use
joveeater May 18, 2023
23c81f8
Remove execinfo.h
joveeater May 18, 2023
c320530
Bugs
joveeater May 19, 2023
4c6c5f2
Fix map rotation
joveeater May 19, 2023
d6f27b0
Fix failed wrecks
joveeater May 19, 2023
582bf36
More bugfixes
joveeater May 20, 2023
964b03b
Various bugs
joveeater May 20, 2023
5cf4e29
Merge branch 'upload' into spring-refactor
joveeater May 20, 2023
3b1678f
More bugfixes
joveeater May 20, 2023
312d122
Fix disassembly
joveeater May 20, 2023
ae159f1
Fix dead removals
joveeater May 21, 2023
d42f9c5
Back to late delete for now
joveeater May 21, 2023
7775c98
Missing property in constructor
joveeater May 21, 2023
4ed4d17
Activity fix
joveeater May 21, 2023
a05a51c
More safety
joveeater May 21, 2023
fe65d83
style: format with code blocks
scarf005 May 22, 2023
e2708b5
ups
joveeater May 22, 2023
d2017f1
Merge branch 'upload' into spring-refactor
joveeater May 22, 2023
d7ce52f
Update crafting.cpp
joveeater May 22, 2023
72dcc85
More fixes
joveeater May 22, 2023
a57239f
More fixes
joveeater May 23, 2023
b319e78
Forgot to add a file
joveeater May 23, 2023
3e5ccaa
Fix rotation offsets
joveeater May 23, 2023
6fcf9f8
Merge pull request #3 from scarf005/game-objects-docs
joveeater May 24, 2023
64bccc0
Appease gcc
joveeater May 24, 2023
f856c69
Fixup android
joveeater May 24, 2023
7b8782f
minor fixes
joveeater May 24, 2023
eb44b19
weapon charges fix
joveeater May 25, 2023
bddeec4
Fix monsters
joveeater May 26, 2023
fe9fe2f
Remove old rotation offsets
joveeater May 26, 2023
fc8daca
Fixes
joveeater May 26, 2023
d222b27
minor safety, needs investigating
joveeater Jun 3, 2023
3292b58
Merge branch 'upload' into spring-refactor
joveeater Jun 20, 2023
6689a63
Merge branch 'upload' into spring-refactor, not done yet
joveeater Jul 14, 2023
cbb5bfd
Merge branch 'upload' into spring-refactor
joveeater Jul 15, 2023
c107a27
Fixes
joveeater Jul 18, 2023
7fd408d
Merge branch 'upload' into spring-refactor
joveeater Jul 19, 2023
cc3137b
cleanup
joveeater Jul 19, 2023
daaffe1
pch fix and more cleanup
joveeater Jul 19, 2023
10d1eeb
Merge branch 'upload' into spring-refactor
scarf005 Jul 20, 2023
1dc2409
Merge branch 'upload' into spring-refactor
joveeater Jul 20, 2023
867f96e
merge
joveeater Jul 21, 2023
152c389
Fix msvc
joveeater Jul 21, 2023
b26ea16
Fix spacing, remove unused includes
olanti-p Jul 23, 2023
a4e599f
Remove npc.h include from locations.h
olanti-p Jul 23, 2023
fc35e9a
Remove leftovers from item_location
olanti-p Jul 23, 2023
b5c73b7
Remove old commented code
olanti-p Jul 23, 2023
2d07409
Remove player_activity.h from json.h
olanti-p Jul 23, 2023
97054bb
Split off activity_ptr into its own header
olanti-p Jul 23, 2023
8bf8a5d
Fix typos
olanti-p Jul 23, 2023
cf2510f
Remove commented out or dead code
olanti-p Jul 23, 2023
8edf510
Fix tidy warnings
olanti-p Jul 23, 2023
1e92947
Remove colony from update-pch.sh
joveeater Jul 24, 2023
2f1bc14
Merge pull request #4 from olanti-p/item-identity-23-07-2023
joveeater Jul 24, 2023
c2f88d3
Merge remote-tracking branch 'origin/spring-refactor' into spring-ref…
joveeater Jul 24, 2023
fddf2c5
Hopefully this fixes the compile
joveeater Jul 24, 2023
945a5fe
build fixes
joveeater Jul 25, 2023
1c9190d
Wrap long comments
olanti-p Jul 25, 2023
1ada61e
Fix typo
olanti-p Jul 25, 2023
29acbc7
Delete submodule
olanti-p Jul 25, 2023
1d0205f
Alternative build fix
olanti-p Jul 25, 2023
8118233
Fix dereferencing nullptr
olanti-p Jul 25, 2023
05249cf
Remove extra space
olanti-p Jul 25, 2023
3e7373d
Remove dead code
olanti-p Jul 25, 2023
277c068
Update src/detached_ptr.cpp
joveeater Jul 25, 2023
1f3dbe1
Update src/activity_actor.cpp
joveeater Jul 25, 2023
000c5a0
Update src/active_tile_data.cpp
joveeater Jul 25, 2023
afc06ac
Update src/handle_liquid.h
joveeater Jul 25, 2023
cb6ee3a
Merge pull request #5 from olanti-p/item-identity-25-07-2023
joveeater Jul 25, 2023
82fbdab
Update src/active_tile_data.cpp
joveeater Jul 25, 2023
b1075e7
Fix takeoff deleting items
joveeater Jul 25, 2023
f76b178
Fixes
joveeater Jul 25, 2023
1f67b88
Liquid fix
joveeater Jul 26, 2023
a1e2bdd
Fix book crash
joveeater Jul 26, 2023
7c0f646
fix holsters
joveeater Jul 26, 2023
ba4e860
Merge branch 'upload' into spring-refactor
joveeater Aug 10, 2023
91d2a78
missed a spot
joveeater Aug 10, 2023
360d121
Merge branch 'upload' into spring-refactor
joveeater Aug 16, 2023
5c371ed
Merge remote-tracking branch 'upstream/upload' into spring-refactor
scarf005 Aug 29, 2023
8b574d4
fix: make it compile
scarf005 Aug 29, 2023
0f04a09
Merge branch 'upload' into spring-refactor
joveeater Sep 11, 2023
1e4f856
Merge branch 'spring-lua' into spring-refactor
joveeater Sep 11, 2023
b06506d
Mess with lua iterators
joveeater Sep 12, 2023
2d1b37f
Merge remote-tracking branch 'upstream/upload' into spring-refactor
scarf005 Sep 23, 2023
09d3f4d
Fixes
joveeater Sep 23, 2023
5531a5a
Merge branch 'spring-refactor' into spring-0.4
scarf005 Sep 23, 2023
3a344ae
fix: iexamine_elevator
scarf005 Sep 23, 2023
6fc592a
fix: `vehicle_part.h` headers
scarf005 Sep 23, 2023
7d94ff7
fix: salvage by weight PR
scarf005 Sep 23, 2023
6d85c7a
docs: game objects
scarf005 Sep 23, 2023
0aee3c8
fix: salvage test
scarf005 Sep 23, 2023
a3b3b47
Merge remote-tracking branch 'upstream/upload' into spring-0.4
scarf005 Sep 23, 2023
d1d29c4
Merge pull request #7 from scarf005/spring-0.4
joveeater Sep 23, 2023
f87a168
style(autofix.ci): automated formatting
autofix-ci[bot] Sep 23, 2023
e6eb11a
submap rotate fixes
joveeater Sep 26, 2023
e5110a6
Merge remote-tracking branch 'origin/spring-refactor' into spring-ref…
joveeater Sep 26, 2023
e9a4cc5
Shouldn't use uint
joveeater Sep 27, 2023
bee0ad4
Merge branch 'upload' into spring-refactor
joveeater Sep 27, 2023
f6d0256
And the rest
joveeater Sep 27, 2023
59afa89
Merge branch 'upload' into spring-refactor
joveeater Sep 28, 2023
c25aa04
Merge branch 'upload' into spring-refactor
joveeater Sep 29, 2023
30cd47a
Fix destroyed things being processed
joveeater Sep 30, 2023
9dfd4c8
Fix armor relayering
joveeater Sep 30, 2023
76b1b4f
Merge branch 'upload' into spring-refactor
joveeater Sep 30, 2023
e519498
Merge branch 'upload' into spring-refactor
joveeater Oct 6, 2023
e0dc0bb
Merge branch 'upload' into spring-refactor
joveeater Oct 7, 2023
0b4b6a5
Merge branch 'upload' into spring-refactor
joveeater Oct 8, 2023
b360544
fix gcc
joveeater Oct 8, 2023
c3fc753
style(autofix.ci): automated formatting
autofix-ci[bot] Oct 8, 2023
edbf095
Fix filthy clothes
joveeater Oct 8, 2023
283f7b4
Merge branch 'upload' into spring-refactor
joveeater Oct 8, 2023
9ef4863
refactor: trailing return goes brrrrr
scarf005 Oct 4, 2023
5a173ee
refactor: apply clang-tidy suggestions
scarf005 Oct 4, 2023
afe72e5
perf: remove obsoleted colony tests
scarf005 Oct 5, 2023
2401cf2
perf: remove flag usage for temperature display
scarf005 Oct 8, 2023
2586412
perf: apply all clang-tidy performance fixes
scarf005 Oct 8, 2023
0d48dd8
perf: use `emplace_back`
scarf005 Oct 8, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix typo
  • Loading branch information
olanti-p committed Jul 25, 2023
commit 1ada61e5806d614bdf8f94df929e431be7e30f27
2 changes: 1 addition & 1 deletion src/safe_reference.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* When comparing IDs the flag bits are ignored. The pointer usually stores a pointer to the target
* itself. If the target is in memory it reliably points to them and is nullptr otherwise. Note that
* the pointer will not be made null until the end of the turn if the target is unloaded or
* destroyed. It's important to check these things separatly. In the case that the redirect ID bit
* destroyed. It's important to check these things separately. In the case that the redirect ID bit
* is set the pointer instead points to another record.
*
* Two in-memory global (really per GO type) unordered_maps are used to manage this. One that
Expand Down