Qt Creator shows errors in fresh project, but code compiles fine
I found the solution to this problem in this bug report.
The libclang-common-8-dev
package needs to be installed. After installing this package and restarting qt creator all of the errors went away.
After seeing JShorthouse's answer, I disabled all the Clang related plugins. Then, everything started working like normal after restarting QT creator.
Find the plugins list in the menu under Help->About Plugins...