Commit Graph

24 Commits

Author SHA1 Message Date
Matt Liberty
93742072ba Merge pull request #9672 from Pinata-Consulting/fix-example-tool-reference
Fix incorrect example tool directory reference in DeveloperGuide.md
2026-03-06 16:56:07 +00:00
Øyvind Harboe
81fd1db8b6 Update docs/contrib/DeveloperGuide.md
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2026-03-06 16:24:51 +01:00
Øyvind Harboe
2938ef8fcf Update Errors section to reference Logger instead of removed Error.hh
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2026-03-06 07:45:57 +01:00
Øyvind Harboe
d55b928d65 Fix incorrect example tool directory reference in DeveloperGuide.md
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2026-03-06 07:45:33 +01:00
Eder Monteiro
bece2b4565 est: update readme and remove duplicated descriptions from rsz
Signed-off-by: Eder Monteiro <emrmonteiro@precisioninno.com>
2025-08-06 13:42:24 -03:00
Matt Liberty
aad2e4db59 exa: add an example tool skeleton
For users who wish to add their own code to OpenROAD the exa module acts
as an example with

- Tcl & Python APIs with unit tests
- Debug graphics

Signed-off-by: Matt Liberty <mliberty@precisioninno.com>
2025-06-02 21:21:06 +00:00
Matt Liberty
bee7f1d30f Various places: remove mpl2 vestiges
Signed-off-by: Matt Liberty <mliberty@precisioninno.com>
2025-03-17 03:47:13 +00:00
wjrforcyber
8940f4c54b Update(Doc): Missing bracket in Tool Flow Namespace Section
Signed-off-by: wjrforcyber <wjrforcyber@163.com>
2025-01-22 17:50:03 +08:00
Henner Zeller
9cae74b8d8 Add a script to run clang-tidy over all files in parallel, cache the results.
Running clang-tidy is very slow and time consuming. We're already
running it as part of pull requests to incrementally point out
issues, but sometimes it would be good to see an overall summary
or simply a way to figure out which clang-tidy checks make
sense to keep.

This adds a new script to etc/ to allow running clang-tidy
in parallel, while also caching the results. So subsequent
runs only need to process files that have changed.

For simplicity, this script is written in C++, but it can
be invoked as a script as it is self-compiling. So it is
as simple as running

```
  /bin/sh etc/run-clang-tidy-cached.cc
```

(or, with the executable bit set, you can invoke it
 even simpler as `etc/run-clang-tidy-cached.cc`)

Note: The first time, before there is a cache built, this will
take a while.

This will generate two outputs

  * `OpenRoad_clang-tidy.summary` tallies up all findings
    and sorts them top first. This also allows to also
    easily see if there are clang-tidy rules that we might
    not be so interested in.
  * `OpenRoad_clang-tidy.out` contains all the findings in
    one file. This is neat to just put in the editor as
    'compile output' and step through the results.
    (Personally, I use 'cat OpenRoad_clang-tidy.out' as
     `compile-command` in emacs, then it is simple to step
     from issue to issue).

Since clang-tidy needs the compilation database, it is first
necessary to run `cmake` and make the comnpilation database
available in the toplevel directory (it not already):

```
  ln -s build/compile_commands.json .
```

Here is a sample of the summary output running this
script over all files.

```
Details: OpenRoad_clang-tidy.out
Summary: OpenRoad_clang-tidy.summary
---- Summary ----
 2339 [modernize-use-nullptr]
 1360 [modernize-use-default-member-init]
  609 [readability-else-after-return]
  549 [performance-avoid-endl]
  464 [modernize-use-override]
  451 [modernize-macro-to-enum]
  391 [readability-inconsistent-declaration-parameter-name]
  356 [modernize-use-using]
  351 [readability-redundant-casting]
  343 [clang-analyzer-security.insecureAPI.strcpy]
  327 [modernize-deprecated-headers]
  304 [clang-diagnostic-error]
  262 [performance-enum-size]
  252 [performance-unnecessary-value-param]
  242 [bugprone-suspicious-string-compare]
  211 [google-runtime-int]
  176 [readability-avoid-const-params-in-decls]
  153 [modernize-use-emplace]
  152 [google-readability-namespace-comments]
  129 [modernize-use-equals-default]
  117 [clang-analyzer-deadcode.DeadStores]
  108 [google-build-using-namespace]
   91 [modernize-use-bool-literals]
   88 [readability-braces-around-statements]
   87 [readability-const-return-type]
   84 [bugprone-multi-level-implicit-pointer-conversion]
   82 [readability-redundant-member-init]
   78 [bugprone-implicit-widening-of-multiplication-result]
   73 [bugprone-switch-missing-default-case]
   70 [bugprone-reserved-identifier]
   67 [misc-unused-using-decls]
   64 [google-default-arguments]
   62 [readability-redundant-declaration]
   60 [bugprone-assignment-in-if-condition]
   60 [modernize-loop-convert]
   48 [readability-suspicious-call-argument]
   46 [clang-analyzer-unix.Malloc]
 ...long tail...
```

The script is maintained in https://github.com/hzeller/dev-tools
and just copied as-is to etc/ with the only change to run the local
clang-format and change the start directory in the configuration
direction to be `src/`.

Signed-off-by: Henner Zeller <h.zeller@acm.org>
2024-12-23 12:15:47 -08:00
Song Luar
2b28607806 Add Doxygen to docs (#4059)
* Add Doxygen to docs

Signed-off-by: luarss <espsluar@gmail.com>
2024-10-21 09:28:52 -03:00
luarss
ce247af710 Merge branch 'master' into manpage_poc 2024-02-06 15:03:30 +00:00
luarss
c8a072d261 add TclFormat, ReadmeFormat, ;#nodocs -> ;#checkeroff
Signed-off-by: luarss <39641663+luarss@users.noreply.github.com>
2024-02-03 03:23:11 +00:00
Song Luar
8229a95b89 [Docs] OR review (#4030)
* update docs
* grammar change

Signed-off-by: luarss <espsluar@gmail.com>
2024-01-16 11:28:18 -03:00
Song Luar
4464b1c843 [Docs] Addtool patch (#3799)
* update add patch files and docs

Signed-off-by: luarss <espsluar@gmail.com>
2024-01-16 10:40:47 -03:00
Song Luar
3accaf6940 [Docs] TOC changes + Database Math (#3860)
* doc changes + dbmath

Signed-off-by: luarss <espsluar@gmail.com>
Signed-off-by: Song Luar <39641663+luarss@users.noreply.github.com>
2023-08-29 08:30:45 -03:00
Song Luar
708046a650 [Docs] Sphinx book theme change (#3522)
* new docs theme

Signed-off-by: luarss <espsluar@gmail.com>
2023-07-14 14:50:52 -03:00
Song Luar
b84325b100 [Docs] fix OR to ORFS build links, readme (#3461)
* fix OR to ORFS build links, readme
* fix checklinks
* restructured toc + removed OR tutorials
* shortened Releases section
* added instructions for local OR install
* Added page on error/warning codes provided by etc/find_messages
* readme update
* removed OR messages
* revert changes for toc and Makefile
* modified or/orfs descriptions

Signed-off-by: luarss <espsluar@gmail.com>
2023-06-29 07:54:12 -03:00
Øyvind Harboe
8003c690f9 docs: single source of truth for building OpenROAD
Also, remove harmful setup instructions:

"sudo etc/DependencyInstaller.sh" will install things into
/usr/local that e.g. messes up your cmake if you are
on Ubuntu.

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2023-04-10 23:52:40 +02:00
Felipe Garay
01a9fd8843 Fix broken link on how to build from source
Signed-off-by: Felipe Garay <fgaray@google.com>
2023-01-13 12:50:11 -08:00
Vitor Bandeira
c06b43117a Formatting
Signed-off-by: Vitor Bandeira <vitor.vbandeira@gmail.com>
2021-12-08 17:42:16 -03:00
Vitor Bandeira
dd6b529f0d Review
Signed-off-by: Vitor Bandeira <vitor.vbandeira@gmail.com>
2021-08-19 11:46:09 -03:00
Vitor Bandeira
47d72357b9 Use same style for all code blocks
Signed-off-by: Vitor Bandeira <vitor.vbandeira@gmail.com>
2021-08-18 15:17:19 -03:00
Vitor Bandeira
043d327b9c Refactor documentation
Signed-off-by: Vitor Bandeira <vitor.vbandeira@gmail.com>
2021-08-18 15:17:19 -03:00
Vitor Bandeira
1f68fb77a4 rst -> md
Signed-off-by: Vitor Bandeira <vitor.vbandeira@gmail.com>
2021-08-18 15:17:19 -03:00