-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include file path and line number in parsing errors (#512)
* Simple line number printout for element Signed-off-by: Aaron Chong <[email protected]> * Passing source into readXml, errors in include tags Signed-off-by: Aaron Chong <[email protected]> * Added helper function for creating trace strings Signed-off-by: Aaron Chong <[email protected]> * Fixing bad calls to elements in includes Signed-off-by: Aaron Chong <[email protected]> * Fixed bad logic in file exists check Signed-off-by: Aaron Chong <[email protected]> * Pimpl-ized Error, added API for file path and line number Signed-off-by: Aaron Chong <[email protected]> * Started using new Error API, removed previous helper functions Signed-off-by: Aaron Chong <[email protected]> * Modified error stream to look like before, using << operator for cmdCheck Signed-off-by: Aaron Chong <[email protected]> * Added tests to check for file tracing and line number Signed-off-by: Aaron Chong <[email protected]> * Added Error constructor without LineNumber for missing elements Signed-off-by: Aaron Chong <[email protected]> * Added tests for parsing errors includes, test sdfs and models Signed-off-by: Aaron Chong <[email protected]> * code_check fixes Signed-off-by: Aaron Chong <[email protected]> * Removed accidental + char Signed-off-by: Aaron Chong <[email protected]> * Removed accidental + char Signed-off-by: Aaron Chong <[email protected]> * Remove file and line number reporting in warnings Signed-off-by: Aaron Chong <[email protected]> * Removed checking for front Error: tag as ign.cc uses << now Signed-off-by: Aaron Chong <[email protected]> * Removed #ifdefs Signed-off-by: Aaron Chong <[email protected]> * Using std optional for getters Signed-off-by: Aaron Chong <[email protected]> * Added line number to Error for missing required attribute Signed-off-by: Aaron Chong <[email protected]> * Removed unused declaration Signed-off-by: Aaron Chong <[email protected]> * enforceConfigurablePolicyCondition accepts Error now, warn and log grabs the filename, line number and message from the Error object Signed-off-by: Aaron Chong <[email protected]>
- Loading branch information
1 parent
936a2e3
commit 2031028
Showing
17 changed files
with
549 additions
and
137 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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.