GNAT SAS User's Guide
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the section entitled 'GNU Free Documentation License'.
- 1. Introduction
- 2. Getting Started
- 3. Project Setup
- 3.1. Configuration for Third Party Compilers
- 3.2. Creating a Project File
- 3.3. Ensuring compatibility with GNAT SAS
- 3.3.1. Using GNAT SAS-Specific Project Settings
- 3.3.2. Support for UTF-8 encoding
- 3.3.3. Use of Libraries Installed with GNAT
- 3.3.4. Use of Predefined Ada Packages
- 3.3.5. Use of Compiler-Specific Packages
- 3.3.6. Using Preprocessing
- 3.3.7. Arbitrary Naming Scheme
- 3.3.8. Ada Language Version
- 3.3.9. Representation Clauses
- 3.3.10. Target Configuration File
- 3.3.11. Using the GNAT Target Runtime Directory
- 3.3.12. Configuration of System Package (system.ads)
- 3.3.13. Ignoring Pragmas
- 3.3.14. Providing Stubs for Missing Generic Bodies
- 3.4. Configuring the Analysis
- 4. Analyzing Code
- 5. Viewing Results
- 6. Reviewing Results and Improving Code
- 7. Workflows
- 7.1. Use on a developer machine
- 7.2. Nightly Runs on a Server
- 7.3. Continuous Runs on a Server after Each Change
- 7.4. Importing GNAT SAS Results
- 7.5. Importing and Sharing GNAT SAS User Reviews
- 7.6. Using GNAT SAS with a Jenkins Automation Server
- 7.7. Easier Review of SAM files stored in Git
- 7.8. Using GNAT SAS in a GitLab Pipeline
- 8. Using GNAT SAS in GNAT Studio
- 9. Using GNAT SAS in Visual Studio Code
- 10. GNAT SAS Files Reference
- 11. GNAT SAS Messages Reference
- 12. GNAT SAS CLI Reference
- 12.1. gnatsas
- 12.2. gnatsas-analyze
- 12.3. gnatsas-baseline
- 12.4. gnatsas-help
- 12.5. gnatsas-report
- 12.6. gnatsas-review
- 12.7. gnatsas-report-code-climate
- 12.8. gnatsas-report-csv
- 12.9. gnatsas-report-exit-code
- 12.10. gnatsas-report-html
- 12.11. gnatsas-report-sarif
- 12.12. gnatsas-report-security
- 12.13. gnatsas-report-text
- 13. FAQ
- 14. Appendix
- 15. GNU Free Documentation License