-
Notifications
You must be signed in to change notification settings - Fork 856
Feature/error messages as string views #13455
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
Merged
Merged
Changes from all commits
Commits
Show all changes
66 commits
Select commit
Hold shift + click to select a range
3e30055
Made Result contain only an optional pointer to an error
goedderz fd78e02
Fixed compile error
goedderz df2e43c
Avoid no-error allocations
goedderz d447876
WIP
goedderz 4d8d9b1
WIP
goedderz ab77f45
Added concatT and joinT to StringUtils
goedderz 331fad5
Fixed tests
goedderz bfc7901
Merge branch 'feature/string-utils-concat-join' of github.com:arangod…
goedderz 699a5dc
Changed namespace from impl to detail
goedderz 8aa96ae
Assert capacity
goedderz b0e1b0c
Fixed compile errors
goedderz 83bb4f8
Return a string_view in Result::errorMessage
goedderz c2435bc
Removed erroneous line
goedderz 6949f89
Merge branch 'feature/refactor-error-message-string-view' of github.c…
goedderz 0fed08d
Fixed some compile errors
goedderz d91cfb5
Some minor changes
goedderz 6eb6ee1
Merge branch 'feature/refactor-error-message-string-view' of github.c…
goedderz 1956b21
Update lib/Basics/ResultT.h
goedderz f5de874
Merge bra
8000
nch 'feature/refactor-error-message-string-view' of github.c…
goedderz 84511fb
Fixed Mac compile error
goedderz eaacdc0
Merge branch 'feature/string-utils-concat-join' of github.com:arangod…
goedderz d988cf8
Merge branch 'feature/refactor-error-message-string-view' of github.c…
goedderz 6d83aeb
Update lib/Basics/Result.h
goedderz 937877d
Added errorMessage move overloads
goedderz 4d49f20
Added noexcept where mentioned in reviews
goedderz 0e098b2
Be consistent.
goedderz 9c209b3
Merge branch 'devel' of github.com:arangodb/arangodb into feature/sma…
goedderz 95e21c9
Make TRI_errno_string return a string_view
goedderz 9e25112
Removed superfluous lines
goedderz 2e6b197
Merge branch 'feature/small-result-with-external-error' of github.com…
goedderz 6b15b7e
Fixed compile errors due to previous change
goedderz bc3c0ef
Merge branch 'devel' of github.com:arangodb/arangodb into feature/sma…
goedderz 27fb946
Fixed merge conflict
goedderz 0433a27
Minor changes
goedderz 0fa6aa1
Added some assertions
goedderz 76f2312
Pass conflictingDocumentKey separately, no longer in a Result's error…
goedderz 99d1190
Merge branch 'feature/small-result-with-external-error' of github.com…
goedderz 690c2d7
Fixed prior commit
goedderz f816181
Fix compile error
goedderz 68be618
Merge branch 'feature/small-result-with-external-error' of github.com…
goedderz a6e7b67
Fixed assertion
goedderz 943bf3e
Fix
goedderz e928f04
Only return conflicting key when it's meaningful, to soothe an assertion
goedderz 0d78b83
Reformat
goedderz ef30942
Added a comment
goedderz a29e7bd
Addressed review comments
goedderz 054cd6d
Merge branch 'feature/small-result-with-external-error' of github.com…
goedderz 8d8bd19
Merge commit '0737c305c536043a3cde5916957dd2714836d25f' into feature/…
goedderz 6fe7d1b
Merge branch 'devel' of github.com:arangodb/arangodb into feature/err…
goedderz 3900256
Fix va args call in macro
goedderz 9c4335f
autoformat
goedderz 29239a0
Try not to rely on error messages being null-terminated as much as po…
goedderz 6759548
Removed unused parts in exitcodes
goedderz 5b2e94f
Try to fix conversion error on windows
goedderz 0161341
Reverted two changes, fixed a compile error, fixed an off-by-one
goedderz 61b16ff
Added a comment
goedderz d83d7b7
Merge branch 'devel' of github.com:arangodb/arangodb into feature/err…
goedderz b4f9613
Adressed some review comments
goedderz c8021d0
Passed some more errors as string_views
goedderz 4dfcda5
Merge branch 'devel' of github.com:arangodb/arangodb into feature/err…
goedderz 62f8892
Removed merge conflict marker
goedderz c768295
Fixed merge conflicts
goedderz baf963f
Fixed erroneous argument to snprintf
goedderz 7463f85
Merge branch 'devel' of github.com:arangodb/arangodb into feature/err…
goedderz 55dd841
Fixed merge conflict
goedderz 72b9738
Removed voc-errors.cpp
goedderz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is
data
null-terminated?