Uploaded image for project: 'Docs for Red Hat Developers'
  1. Docs for Red Hat Developers
  2. RHDEVDOCS-1195

[llvm/clang] update example source code "fibonacci.c" from devtoolset docs and review LLDB docs

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • Major
    • DevTools 2019.1
    • None
    • DevTools
    • None

    Description

      copy source code from

      https://access.redhat.com/documentation/en-us/red_hat_developer_toolset/8/html-single/user_guide/index

      to llvm docs (it is missing)

      #include <stdio.h>
      #include <limits.h>
      
      int main (int argc, char *argv[]) {
        unsigned long int a = 0;
        unsigned long int b = 1;
        unsigned long int sum;
      
        while (b < LONG_MAX) {
          printf("%ld ", b);
          sum = a + b;
          a = b;
          b = sum;
        }
        return 0;
      }
      

      and test and review the docs

      • Tested on Rhel 8.0

      Published as part of https://issues.jboss.org/browse/RHDEVDOCS-1060.

      Attachments

        Issue Links

          Activity

            People

              pmacko Peter Macko (Inactive)
              pmacko Peter Macko (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: